fix: use node:timers/promises for async setTimeout

node:util does not export setTimeout — the async sleep function
lives in node:timers/promises.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Prateek 2026-02-14 21:03:19 +05:30
parent 90ca1d8c2e
commit 7fa16fa4d3
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { execFile } from "node:child_process";
import { promisify, setTimeout as sleep } from "node:util";
import { promisify } from "node:util";
import { setTimeout as sleep } from "node:timers/promises";
import { randomUUID } from "node:crypto";
import { writeFileSync, unlinkSync } from "node:fs";
import { tmpdir } from "node:os";