-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channels: remove WeakRef from Condition (#31673)
Using a WeakRef meant we might not actually `bind` the result. If nobody was still holding a reference to put contents into the Condition, we would simply garbage collect it, and then never need to close it. Since that does not seem to be the intent, instead move to just keeping a strong reference (alternatively, we would have to switch to using `stream_wait` with ref-counting, but that seems suboptimal for several reasons.). fix #31507 (cherry picked from commit 29f61cd)
- Loading branch information
1 parent
5c61d3a
commit 95e2a54
Showing
2 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters