Skip to content

Next tick shim that prefers process.nextTick over queueMicrotask for compat

License

Notifications You must be signed in to change notification settings

mafintosh/queue-tick

Repository files navigation

queue-tick

Next tick shim that prefers process.nextTick over queueMicrotask for compat

npm install queue-tick

Usage

const queueTick = require('queue-tick')

// in Node it uses process.nextTick, in browsers it uses queueMicrotask
queueTick(() => console.log('laters'))

License

MIT

About

Next tick shim that prefers process.nextTick over queueMicrotask for compat

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published