mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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.
605 KiB
605 KiB