Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

'Any' combiner for futures #39

Open
someretical opened this issue Jan 12, 2022 · 1 comment
Open

'Any' combiner for futures #39

someretical opened this issue Jan 12, 2022 · 1 comment

Comments

@someretical
Copy link

Currently, this library offers a combiner which resolves once all the futures added to it have resolved.

I don't think there is a 'combiner' which resolves once ANY ONE of the futures added to it have resolved. It would be nice to have this as a feature.

Perhaps 2 versions could be implemented. One would behave like Promise.any() and the other like Promise.race().

@vpicaver
Copy link
Contributor

We would probably need to have an AnyCombiner or RaceCombiner.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants