aboutsummaryrefslogtreecommitdiff
path: root/docs/api/utils.md
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-09-07 10:09:09 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-07 10:09:09 -0700
commit5424ea3403df9cd4672290865f12b6f5b01cf2d0 (patch)
tree27e19a70fba49ffdd944c190163f5e8322d7a32f /docs/api/utils.md
parent4b63ced72dc1b304e737d9ea055c8b6e75f46119 (diff)
downloadbun-5424ea3403df9cd4672290865f12b6f5b01cf2d0.tar.gz
bun-5424ea3403df9cd4672290865f12b6f5b01cf2d0.tar.zst
bun-5424ea3403df9cd4672290865f12b6f5b01cf2d0.zip
Doc updates for v1.0 (#4485)
* Remove v0.x messages * Add windows section to Installatino * update * update * Update * Comment out windows
Diffstat (limited to 'docs/api/utils.md')
-rw-r--r--docs/api/utils.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api/utils.md b/docs/api/utils.md
index 8b166e3e8..de2dc6994 100644
--- a/docs/api/utils.md
+++ b/docs/api/utils.md
@@ -43,7 +43,7 @@ This is analogous to the [`require.main = module` trick](https://stackoverflow.c
## `Bun.sleep()`
-`Bun.sleep(ms: number)` (added in Bun v0.5.6)
+`Bun.sleep(ms: number)`
Returns a `Promise` that resolves after the given number of milliseconds.
@@ -65,7 +65,7 @@ console.log("hello one second later!");
## `Bun.sleepSync()`
-`Bun.sleepSync(ms: number)` (added in Bun v0.5.6)
+`Bun.sleepSync(ms: number)`
A blocking synchronous version of `Bun.sleep`.
@@ -108,7 +108,7 @@ console.log(ls); // null
## `Bun.peek()`
-`Bun.peek(prom: Promise)` (added in Bun v0.2.2)
+`Bun.peek(prom: Promise)`
Reads a promise's result without `await` or `.then`, but only if the promise has already fulfilled or rejected.