asap
JSON →A high-priority task queue for Node.js and browsers (version 2.0.6 stable; last release 2019+; no active development). Schedules callbacks to run as soon as possible, before yielding for I/O, reflow, or redrawing. Uses microtasks/nextTick/setTimeout depending on environment. Faster than setImmediate/process.nextTick but can block input events and animation. Includes `asap/raw` for even faster execution without error handling. Minimalist (~1KB) with no dependencies.
Resources
packageasap ↗