Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seq[Future[T]].altAll is unintuitive #29

Closed
nadenf opened this issue Dec 15, 2023 · 1 comment
Closed

Seq[Future[T]].altAll is unintuitive #29

nadenf opened this issue Dec 15, 2023 · 1 comment

Comments

@nadenf
Copy link

nadenf commented Dec 15, 2023

There is no description for what the term altAll means in the following code:

Seq[Future[T]].altAll

It doesn't make clear the fact that it is awaiting on something nor does it make sense given it's not waiting on all of the futures. Based on the description isn't something along these lines better:

Seq[Future[T]].awaitFirst
Seq[Future[T]].awaitFirstSuccess

Or even this if alt all means something:

Seq[Future[T]].awaitAltAll

@natsukagami
Copy link
Collaborator

Changed to .awaitFirst by #44 :)

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

No branches or pull requests

2 participants