HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by brad0 | Hacker News Reader
Parent
Full thread
brad0
·
In the case of failure what error do you return?
View on HN
geeg
·
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
·
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
Reply on news.ycombinator.com