Simple `setImmediate` shim
MIT License
Bot releases are hidden (Show)
Published by sindresorhus 7 months ago
https://github.com/sindresorhus/set-immediate-shim/compare/v3.0.0...v3.1.0
https://github.com/sindresorhus/set-immediate-shim/compare/v2.0.0...v3.0.0
Use requestAnimationFrame as an async iterable, in any JavaScript environment
Wait for a condition to be true
Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`
Returns a promise resolved in the next event loop - think `setImmediate()`
Create a deferred promise
Wait for any promise to be fulfilled
Make an asynchronous function synchronous
Check if something is a promise
Start a promise chain
Delay a promise a minimum amount of time
Measure the time a promise takes to resolve
Wait for a specified number of promises to be fulfilled
Delay a promise a specified amount of time
Delay function calls until a set time elapses after the last invocation
Settle promises concurrently and get their fulfillment value or rejection reason with optional li...