nanotick

Process.nextTick() batching utility

MIT 11 个版本
安装
npm install nanotick
yarn add nanotick
pnpm add nanotick
bun add nanotick
README

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

版本列表
1.1.6 2017-03-03
1.1.5 2017-01-20
1.1.4 2016-12-14
1.1.3 2016-12-13
1.1.2 2016-12-12
1.1.1 2016-12-12
1.1.0 2016-12-12
1.0.3 2016-12-12
1.0.2 2016-12-12
1.0.1 2016-12-12
1.0.0 2016-12-12