mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use an optional isolated parameter to this new `next(_:)` overload to keep it on the same actor as the caller, and pass `#isolation` when desugaring the async for..in loop. This keeps async iteration loops on the same actor, allowing non-Sendable values to be used with many async sequences.
4.8 KiB
4.8 KiB