aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar paperluigis <github-in@paperluigis.ml> 2023-06-10 13:03:30 +0500
committerGravatar GitHub <noreply@github.com> 2023-06-10 01:03:30 -0700
commitf51878a8ec64f313c63e790543477c934184954c (patch)
treefcfcaa45dd2cdbf03705aba73a4a72d22530bf99
parentf18423cf450c2fb541ed43f8f088f15c8f0244b2 (diff)
downloadbun-f51878a8ec64f313c63e790543477c934184954c.tar.gz
bun-f51878a8ec64f313c63e790543477c934184954c.tar.zst
bun-f51878a8ec64f313c63e790543477c934184954c.zip
Fix wording and code example in docs for Bun.sleepSync (#3270)
-rw-r--r--docs/api/utils.md10
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)`