Skip to main content
Bun.sleep() 返回一个 void Promise,该 Promise 会在给定的毫秒数后解析。

在内部,它等价于以下 setTimeout 代码片段。

请参阅工具