結果 : force async method to run synchronously javascript