Skip to main content
Bun.sleep() returns a void Promise that resolves after a given number of milliseconds.

Internally, it is equivalent to the following setTimeout snippet.

See Utils.