diff options
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/utils.md | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docs/api/utils.md b/docs/api/utils.md index 7797650f5..2032d4acd 100644 --- a/docs/api/utils.md +++ b/docs/api/utils.md @@ -75,16 +75,6 @@ Bun.sleepSync(1000); // blocks thread for one second console.log("hello one second later!"); ``` -Alternatively, pass a `Date` object to receive a `Promise` that resolves at that point in time. - -```ts -const oneSecondInFuture = new Date(Date.now() + 1000); - -console.log("hello"); -await Bun.sleep(oneSecondInFuture); -console.log("hello one second later!"); -``` - ## `Bun.which()` `Bun.which(bin: string)` |