You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a non-sendable sequence cannot be erased to `AsyncStream`
using this library's initializers even if one takes care to traffic it
through via `nonisolated(unsafe)`:
```swift
nonisolated(unsafe) let nonSendable = nonSendable
AsyncStream(nonSendable) // 🛑
```
This conditional conformance acts as a workaround:
```swift
AsyncStream(UncheckedSendable(nonSendable))
```
Ideally folks can stop using our concrete async sequence eraser in favor
of `any AsyncSequence<Element, Failure>`, but this requires a minimum
deployment target of iOS 18, so it won't be an option for many people
for some time.
0 commit comments