結果 : javascript check if async function finished