Documentation Index

Fetch the complete documentation index at: /docs/llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content
Bun.sleep() returns a void Promise that resolves after a given number of milliseconds.
// sleep for 1 second
await Bun.sleep(1000);

Internally, it is equivalent to the following setTimeout snippet.
await new Promise(resolve => setTimeout(resolve, ms));

See Utils.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.