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

Accept an AsyncSequence #14

Open
sindresorhus opened this issue Jun 19, 2021 · 0 comments
Open

Accept an AsyncSequence #14

sindresorhus opened this issue Jun 19, 2021 · 0 comments

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Jun 19, 2021

Just like we do with Progress.

When macOS 12 is out.

https://github.com/apple/swift-evolution/blob/main/proposals/0314-async-stream.md

I'm not yet sure what to call the API. I think we can just wait and see what kind of naming Apple decides to use for properties.

Actually, this is problematic as an AsyncSequence can only be consumed once. We'll have to wait for multi-consuming async sequences.

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

No branches or pull requests

1 participant