import addPromise, {changeParallel} from 'promise-parallel-serial'
// fn:function () {return new Promise()}
// ctx: this
// args: fn.call(ctx, args)
addPromise(fn: Promise, ctx, args)
// get parallel num
changeParallel() // get current parallel , default is 2
// change parallel num
changeParallel(3) // set parallel is 3
xiayefeng/promise-lib
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
promise
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published