-
Notifications
You must be signed in to change notification settings - Fork 220
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
(Some folks) await async support #296
Comments
Additional context: Apple documentation explicitly says:
and now that we have async/await functionality, it feels like a great time/opportunity to make this properly asynchronous. |
We should absolutely mark We could also make a breaking change to make Longer-term, in our next breaking API change (which we're overdue for – we're still supporting Xcode 11), it may make sense to:
This approach would create consumer flexibility, remove our use of locks (which I'm honestly not sure we need today – I never read the open-source Security framework's Open to suggestions here. I'm also open to re-assigning ownership of this task – I haven't worked for Square since 2016 and am trying to focus my open source time on projects hosted on my own page. |
After chewing on this a little and deploying Swift Concurrency heavily in a few apps and projects, I'm thinking that:
The more I think about this, the more that taking on this API change would lead to an increase in API surface and README length without providing much that consumers of this library couldn't very quickly write themselves in a way that works better for them. Thoughts? |
Now that we support Swift Concurrency with #308, I am tempted to call this issue addressed. Will leave this open for a bit in case folk want to make a case for an alternative approach. |
Closing as completed. While we don't currently have an async API, we support being used in async APIs now which is pretty darned close. |
👋🏻😁🙏🏻
The text was updated successfully, but these errors were encountered: