diff options
author | 2023-03-02 09:00:20 -0800 | |
---|---|---|
committer | 2023-03-02 09:00:20 -0800 | |
commit | 20930849ce0bcfe685e8042a4a53d9c9dd67343b (patch) | |
tree | 2f7eaa99dd6e273bcd0e26c2adc772f2aefc7bf1 /bench/snippets/async-overhead.mjs | |
parent | efdf64746076c4ed09da87e41d7de81c2b659dab (diff) | |
download | bun-20930849ce0bcfe685e8042a4a53d9c9dd67343b.tar.gz bun-20930849ce0bcfe685e8042a4a53d9c9dd67343b.tar.zst bun-20930849ce0bcfe685e8042a4a53d9c9dd67343b.zip |
Fix `Bun.sleepSync` to actually use milliseconds (#2242)
* Fix Bun.sleep/sleepSync to actually use milliseconds
`Bun.sleepSync` was accidentally treating its argument as seconds rather than milliseconds as the docs stated. This is a breaking change in that the function now behaves as documented. Fixed relevant tests.
* sleepSync: add more argument checking, tests
Diffstat (limited to 'bench/snippets/async-overhead.mjs')
0 files changed, 0 insertions, 0 deletions