將事件驅動 (event-driven) 的模式改為可等候的方法 (awaitable method)