結果 : wait for async function to finish javascript without await