YuzuJS/setImmediate
A cross-browser implementation of the new setImmediate API. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5543
- days_rel: n/a
- days_push: 975
- n_releases_24m: 0
Adoption not part of the score
1302 stars · 106 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A cross-browser JavaScript library implementing the proposed setImmediate and clearImmediate APIs for efficient script yielding to the event loop. It uses environment-specific tricks (MessageChannel, postMessage, process.nextTick) with a setTimeout fallback so it works everywhere.
Use cases
- yield to the browser event loop more efficiently than setTimeout(fn, 0)
- polyfill setImmediate in older browsers and Node versions
- schedule macrotask callbacks that let I/O and rendering happen between tasks
- avoid long-running script blocking in IE6+ and legacy browsers
- queue tasks in web workers
When to choose
- you need macrotask semantics (yield to event loop) rather than microtask semantics
- you must support very old browsers or Node versions lacking native setImmediate
- you want a small, dependency-free shim with a safe setTimeout fallback
When to avoid
- you only need microtask ordering — use Promise or asap instead
- you want render-loop-aligned scheduling — use requestAnimationFrame
- your target environments all have native setImmediate already
Facets
library · maturity maintenance
concurrency developer-tools web-development frontend developer-tools browser cross-platform setimmediate polyfill shim event-loop macrotask async nodejs
2 sources
- readme: https://github.com/YuzuJS/setImmediate · fetched 2026-08-28 · 6b8504e6cef0
- registry_npm: https://registry.npmjs.org/setimmediate · fetched 2026-08-29 · 207b352e6140
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| YuzuJS/setImmediate | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="YuzuJS/setImmediate")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem