You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fangdawei
ef5e3ecfd0
|
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 |
README.md
next-tick
Environment agnostic nextTick polyfill
To be used in environment agnostic modules that need nextTick functionality.
- When run in Node.js
process.nextTick
is used - In modern engines, microtask resolution is guaranteed by
queueMicrotask
- In older browsers,
MutationObserver
is used as a fallback - In other engines
setImmediate
orsetTimeout(fn, 0)
is used as fallback. - If none of the above is supported module resolves to
null
Installation
NPM
In your project path:
$ npm install next-tick
Browser
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack
Tests
$ npm test
Security contact information
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
Get professional support for d with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.