nextable
Computing any kinds of functions in serial order.
Install
npm install nextable
Usage
Require nextable
const nextable = ;
Functions of async and sync
// if not passing "next" to the arguments,// will be treated like a normal function.const normalTask = { console;}; // if passing "next" to the arguments,// will wait for "next" to be calledconst setTimeoutTask = { ;}; const promiseTask = { console; ; ; };
Passing any kind of functions:
; // will logs// -> setTimeout Task// -> promise Task// -> normal Task
Test
npm test
LICENSE
MIT