Skip to content

sleep

异步等待时间流逝

73 bytes
since v12.1.0

使用方法

_.sleep 函数允许您以毫秒为单位延迟。

import * as _ from "radashi";
await _.sleep(2000); // => 等待2秒