callback-store
1.0.0 • Public • Published callback-store
A store for callbacks waiting for delayed response.

Installation
npm install --save callback-store
Usage
const cbStore = require('callback-store')
let callbacks = cbStore()
let uid = Math.random()
callbacks.add(uid, function(err) {
if (err) {
return
}
console.log('Hello world!')
}, 5000)
let cb = callbacks.get(uid)
cb()
License
The MIT License (MIT)
Package Sidebar
Install
Weekly Downloads