GitShow/sindresorhus/set-immediate-shim
sindresorhus

set-immediate-shim

Simple `setImmediate` shim

by sindresorhus
Star on GitHubForknpm

JavaScript

29 stars7 forks3 contributorsQuiet · 11mo agoSince 2014v4.0.0MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus20 contributions
Richienb
Richienb1 contribution
andineck
andineck1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
TestPolygon
Add `MessageChannel` implementation to improve performanceClosedIssue

The description says that it is "Simple module". And people use it (over 2kk installations). They think that it's simple _and good_ one, but in fact it's simple _and slow_ one. But there is no any note about it. A lot of people do not check the code of modules that they install, they expect that the creator spent time to investigate the problem to create the best decision, but it is not about this repo. The word "simple" is not the correct description, but "simple and naive", or "simple and slow" are. Using this code in the browser leads to a performance hit. It's a fact. For some cases the impact is significant. For example: https://github.com/Stuk/jszip/issues/617 Here is the example of using of _the properly created_ : https://jphpsf.github.io/setImmediate-shim-demo/ 296ms () vs 12617ms ( === your implementation**) Node.js has . Using your implementation in the browser is the same thing as using , but with the misleading name.

TestPolygon · 11mo ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
andineck
fixes arguments incompatibility with setTimeoutMergedPR

#2 cleaned up.

andineck · 11y ago
Structured data for AI agents

Repository: sindresorhus/set-immediate-shim. Description: Simple `setImmediate` shim Stars: 29, Forks: 7. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v4.0.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, andineck.

·@ofershap

Replace github.com with gitshow.dev