diff options
author | 2022-10-24 04:13:29 -0700 | |
---|---|---|
committer | 2022-10-24 04:13:29 -0700 | |
commit | f13f465024d434f5976128f8690b581285ebd68c (patch) | |
tree | 257da5501c64477d9139bd8f914c668ae81f70c6 | |
parent | e8d6ad6d66c9594027d944885524863e8a985bc0 (diff) | |
download | bun-f13f465024d434f5976128f8690b581285ebd68c.tar.gz bun-f13f465024d434f5976128f8690b581285ebd68c.tar.zst bun-f13f465024d434f5976128f8690b581285ebd68c.zip |
Update README.md
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2582,7 +2582,10 @@ console.log(ls); // null import { peek } from "bun"; const promise = Promise.resolve("hi"); + +// no await! const result = peek(promise); + console.log(result); // "hi" ``` |