Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@adamgfraser adamgfraser requested review from jdegoes and vigoo January 28, 2023 00:03
@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.

3 participants