Files
bun.sh/test/bun.js/node-timers.test.ts
Jarred Sumner ac36ea51cf possibly more reliable Bun.spawn (#1547)
* wip

* wip

* Fix bug with stdin

* zig fmt

* seems to work!

* Update streams.test.js

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-23 07:14:33 -08:00

11 lines
246 B
TypeScript

import { test } from "bun:test";
import { setTimeout } from "node:timers";
test("unref is possible", () => {
const timer = setTimeout(() => {
throw new Error("should not be called");
}, 1000);
timer.unref();
clearTimeout(timer);
});