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

Internally, Bun.sleep() is equivalent to the following setTimeout snippet.

See Utils.