All Projects → choojs → nanotick

choojs / nanotick

Licence: MIT license
process.nextTick() batching utility

Programming Languages

javascript
184084 projects - #8 most used programming language

nanotick stability

npm version build status test coverage downloads js-standard-style

Process.nextTick() batching utility.

Usage

var nanotick = require('nanotick')

var tick = nanotick()

var myFunc = tick(function () {
  // do sync thing
})

// now resolves async
myFunc()

API

tick = nanotick

Create a new nanotick instance

tick(cb)

Always resolve a function asynchronously. Uses batching under the hood to optimize performance

Installation

$ npm install nanotick

See Also

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].