@giapspzoo/next-tick
v1.0.0
Published
A minimal utility that defers a function to the next event loop tick using `setTimeout(fn)`. Useful for scheduling asynchronous execution without relying on Node.js-specific `process.nextTick()` or Promise-based microtasks. Works in both Node.js and brows
Readme
@giapspzoo/next-tick
A minimal utility that defers a function to the next event loop tick using setTimeout(fn). Useful for scheduling asynchronous execution without relying on Node.js-specific process.nextTick() or Promise-based microtasks. Works in both Node.js and browser environments.
Usage
import nextTick from "@giapspzoo/next-tick";
nextTick(() => {
doSomething();
});