等待

STD 庫
伺服器端與客戶端
可在 Mobile 端和 PC 端使用

等待一定時間,使用該API的函數需要宣告為async。

聲明

async func WaitForMillisecond(duration int)
go

參數

輸入

名稱 類型 描述
持續時間 (ms) Int 等待的時長,單位毫秒