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

Rename alt and altAll to or and awaitFirst #44

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

natsukagami
Copy link
Collaborator

As suggested by #29, alt and altAll are unintuitive names.
awaitFirst seems to be a better alternative for altAll.

Respectively, fut1.or(fut2) makes more sense.

  • Rename alt and altWithCancel to or and orWithCancel
  • Rename altAll and altAllWithCancel to awaitFirst(WithCancel)

Feels closer to `Option`'s `.orElse`
`altAll` is unintuitive and we don't use the term "alternate" anywhere.
`awaitFirst` seems to be a good alternative.
@natsukagami natsukagami marked this pull request as draft February 23, 2024 15:02
@natsukagami natsukagami marked this pull request as ready for review February 23, 2024 15:12
@m8nmueller
Copy link
Collaborator

Makes sense to me

@natsukagami natsukagami merged commit 40c3327 into lampepfl:main Mar 5, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants