結果 : typescript wait for async function to complete