pacu
It is a tool to solve the problem of resolving serise promise functions with parameter continuously. And there is not a solution but only resolving parallelly.
Install
$ npm install --save pacu
Usage
Initializing pacu
var pacu =
Important
To accomplish running promise function one after one is difficult, because the object format of promise function and promise function with parameter are different in js ( issue of anonymous function with parameters ). So that handling this issue needed to push promise function(not a promise) to an array list, which will be resolved:
var { return { } }; var promisesList = ; promisesList;
## Usage//processing promiseList by series var pacu = pacu;
## Usage closure design//processing promiseList by series in closure design var PACU = var pacu = promisesList pacu;