2 ms·
In the case of failure what error do you return?
by brad0 8y ago
In 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...