Licence
ISC
Version
1.0.1
Deps
1
Size
4 kB
Vulns
0
Weekly
0
righto-series
Run a collection of righto's in series, one at a time.
Installation
npm i --save righto-series
Usage
function * doInSeries () {
const first = yield firstThing()
const second = yield secondThing(first)
const third = yield thirdThing(second)
return third
}
rightoSeries(doInSeries, (error, result) => {
// result === third
})