SkillAgentSearch skills...

Nanotick

process.nextTick() batching utility

Install / Use

/learn @choojs/Nanotick
About this skill

Quality Score

0/100

Supported Platforms

Universal

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

View on GitHub
GitHub Stars38
CategoryDevelopment
Updated1y ago
Forks4

Languages

JavaScript

Security Score

75/100

Audited on Nov 30, 2024

No findings