1.0.1 • Published 4 years ago
righto-series v1.0.1
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
})