nanotick
v1.1.6
Published
Process.nextTick() batching utility
Downloads
44
Readme
nanotick
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