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

Fix async/await for macOS 10.15, iOS 13, watchOS 6, tvOS 13 #55

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

rudrankriyam
Copy link
Contributor

While Apple has back-ported concurrency to macOS 10.15, iOS 13, watchOS 6, tvOS 13, unfortunately, it hasn't backported the async/await methods written for iOS 15+ and others.

So, in the current state, running the project gives errors that the data method is available only for iOS 15+.

To fix this, we've to write our own variation of data while Apple backports this method to iOS 13+.

I've taken the solution from John's AsyncCompatibilityKit that serves this purpose.

@satoshi-takano
Copy link
Owner

@rudrankriyam Thanks for your contribution! 🙏

@satoshi-takano satoshi-takano merged commit 6c62191 into satoshi-takano:main Jan 20, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants