3 ms·
Just another library with the sole purpose of wait for all promises to complete
https://github.com/rpgeeganage/alls
Just another library with the sole purpose of waiting till all promises to complete Nothing more, Nothing less. Since Promise.all() doesn't wait if an error, so I wrote it.
- brad0 8y agoIn the case of failure what error do you return?
- geeg 8y agoIn case of error, I will return stats as 'rejected' and reason as the error thrown by the promise. Sample: https://github.com/rpgeeganage/alls#final-output https://github.com/rpgeeganage/alls#final-output
- geeg 8y agoThe output will be an array. Collection of success and failures. in the same order. https://github.com/rpgeeganage/alls/blob/master/test/alls.ts#L146 https://github.com/rpgeeganage/alls/blob/master/test/alls.ts... https://github.com/rpgeeganage/alls/blob/master/test/alls.ts#L166 https://github.com/rpgeeganage/alls/blob/master/test/alls.ts... https://github.com/rpgeeganage/alls/blob/master/test/alls.ts#L190 https://github.com/rpgeeganage/alls/blob/master/test/alls.ts...