等待

STD库
Both Server and Client
Both Mobile and PC

等待一定时间,使用该API的函数需要声明为async。

声明

async func WaitForMillisecond(duration int)
go

参数

输入

名称 类型 描述
持续时间 (ms) Int 等待的时长,单位毫秒