sensordb2 e64a8defe5 3.17 | 1 year ago | |
---|---|---|
.. | ||
.github | 1 year ago | |
test | 1 year ago | |
.editorconfig | 1 year ago | |
.lint | 1 year ago | |
CHANGELOG.md | 1 year ago | |
CHANGES | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago |
To be used in environment agnostic modules that need nextTick functionality.
process.nextTick
is usedqueueMicrotask
MutationObserver
is used as a fallbacksetImmediate
or setTimeout(fn, 0)
is used as fallback.null
In your project path:
$ npm install next-tick
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack
$ npm test
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.