2 ms·
You can alias it if you're worried about shadowing. import { setTimeout as loiter } from "node:timers/promises"; await loiter(500);
by joshmanders 2y ago
You can alias it if you're worried about shadowing.
import { setTimeout as loiter } from "node:timers/promises";
await loiter(500);
- hombre_fatal 2y agoSure, and that competes with a universal idiom. To me it's kinda like adding a shallowClone(old) helper instead of writing const obj = { ...old }. But no point in arguing about it forever.