mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 04:49:06 +00:00
* 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>
11 lines
246 B
TypeScript
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);
|
|
});
|