nanotick

1.1.6 • Public • Published

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

Package Sidebar

Install

npm i nanotick

Weekly Downloads

19

Version

1.1.6

License

MIT

Last publish

Collaborators

  • mreinstein
  • benlyn
  • s3ththompson
  • yoshuawuyts
  • bret
  • lrlna
  • yerkopalma
  • juliangruber
  • timwis
  • ahdinosaur
  • toddself
  • sethvincent
  • maxogden
  • shama
  • freeman-lab
  • feross
  • emilbayes
  • colingourlay
  • jameskyburz
  • almost
  • slaskis
  • ungoldman
  • graforlock
  • tornqvist
  • amongiants
  • goto-bus-stop
  • mafintosh