ParalellPromises
In this project I explore the concept of paralell promises and implement a method for executing a list of promises with a determined concurency limit. This project is inspired by https://itnext.io/node-js-handling-asynchronous-operations-in-parallel-69679dfae3fc
Table of Contents
Installation
Install it on your project
npm install --save paralell-promises
Usage
Usage with Typescript
; ... ; customPromiseAlllistOfPromises, concurrentLimit.then;
Usage with Javascript
const ParalellPromises = ; ... const concurrentLimit = 5; const listOfPromises = name: 'GetSomething' function: thisoperationWrappergetSomethingFunction thisArg: thisoperationWrapper args: "firstParamForFunction" data: "Another param" "more params..." name: 'CreateSomething' function: thiscreateSomething thisArg: undefined args: "firstParamForFunction" name: 'RefreshSomething' function: thisupdateSomething ... ParalellPromises;
Contributing
There is no plan regarding contributions in this project
Credits
This NPM package has been developed by:
Rafael Pernil Bronchalo - Developer
License
This project is licensed under the MIT License - see the LICENSE.md file for details