Files
bun.sh/test/js/bun/util/sleep-keepalive.ts
Ciro Spaciari d030cce8bb fix(windows) socket and timers/performance tests (#9651)
* WIP missing keepalive

* cleanup

* is a Bun.sleep bug?

* no bun sleep

* fix exception

* revert

* fix setTimeout/Bun.sleep

* add Bun.sleep keepalive test

* fixes

* one more bonus fix

* fix early firing of timers

* use localhost and pass the server.hostname

* opsie
2024-03-27 10:31:12 -07:00

5 lines
88 B
TypeScript

(async () => {
await Bun.sleep(10);
console.log("event loop was not killed");
})();