Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CyonAlexRDX opened this issue Jan 6, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@CyonAlexRDX
Copy link

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?

@CyonAlexRDX CyonAlexRDX added the enhancement New feature or request label Jan 6, 2023
@gonzo-oin
Copy link

I will add that not marking it as Sendable prevents using combineLatest, for example, which is quite a hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants