deep-foundation / deeplinks

https://discord.gg/deep-foundation
The Unlicense
14 stars 9 forks source link

Return results on resolve and reject in `await deep.await()` #333

Open Konard opened 2 months ago

Konard commented 2 months ago

That means that if PromiseResult is Resolved, it might be useful to collect all successful results from handlers/promises and return these as the result of deep.await function.

Also when any of PromiseResult is Rejected, it should behave as error was thrown, at the same time it should also return all successful results, and all rejected.

Konard commented 2 months ago

@ivansglazunov do you have any objections?