mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
As of the changes in https://github.com/swiftlang/swift/pull/41713 to enable Sendability for AsyncStream, it has been possible to create multiple stream consumers operating concurrently. This change fixes behavior in the case that the underlying stream is terminated while multiple pending continuations are outstanding. Previously such consumers would have been leaked (never resumed). Now, they are notified of the stream's termination and resumed appropriately. Resolves #66541 & #71412
17 KiB
17 KiB