one-at-a-time
v1.0.0
Published
let async functions run one at a time
Downloads
5
Readme
one-at-a-time
let async functions run one at a time
one(fn)
Given a function that takes a callback, return a version that only permits one callbacker to run at a time
Parameters
| parameter | type | description |
| --------- | -------- | ----------- |
| fn
| Function | input |
Returns Function
, one-at-a-time limited version
Installation
Requires nodejs.
$ npm install one-at-a-time
Tests
$ npm test