HNHacker News
TopNewBestAskShowJobs

geeg

7 karma · joined September 25, 2018

submissionscomments
geeg··on Just another library with the sole purpose of wait for all promises to complete
The output will be an array. Collection of success and failures. in the same order. https://github.com/rpgeeganage/alls/blob/master/test/alls.ts... https://github.com/rpgeeganage/alls/blob/master/test/alls.ts... https://github.com/rpgeeganage/alls/blob/master/test/alls.ts...
geeg··on Just another library with the sole purpose of wait for all promises to complete
In 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
geeg··on Async/Await on Array method – JavaScript
I usually don't use any 3rd party library as a replacement for native promises. The main advantage of the package is, it does not depend on any 3rd party library (except for testing and TypeScript related stuff)
geeg··on Async/Await for JavaScript Arrays
Code snippet: https://repl.it/@rpgeeganage/async-code-with-arrays