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

Deprecate Await Race Variants #7761

Merged
merged 1 commit into from
Jan 28, 2023
Merged

Deprecate Await Race Variants #7761

merged 1 commit into from
Jan 28, 2023

Conversation

adamgfraser
Copy link
Contributor

Deprecates raceAwait and raceFirstAwait and changes the semantics of race and raceFirst to await the interruption of the loser. If you don't want to await the interruption of the loser you can disconnect it.

These operators have created inconsistency with other operators derived from race and risk a proliferation of variants, creating uncertainty about which version to use. In addition, not waiting for termination can be the source of subtle bugs if resources are not released on a timely basis, whereas waiting for termination when it is not desired typically results in a 'loud" failure that is easily solved by using disconnect.

@jdegoes
Copy link
Member

jdegoes commented Jan 28, 2023

Worth calling out in release notes, too. 👍

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.

None yet

3 participants