sideeffect-io / AsyncExtensions

AsyncExtensions aims to mimic Swift Combine operators for async sequences.
MIT License
324 stars 26 forks source link

Any reason why `AnyAsyncSequence` does not conform to `Sendable` (if `Element: Sendable`...)? #34

Open CyonAlexRDX opened 1 year ago

CyonAlexRDX commented 1 year ago

Swifts AsyncStream for example is sendable:

@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
extension AsyncStream : @unchecked Sendable where Element : Sendable {
}

Thus it feels like AnyAsyncSequence safely can be marked Sendable as well?