-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: add swift concurrency (async/await) support #85
Conversation
…and MessageInterceptableAsync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, just a few questions.
Also, it would be great if we could add a short blurb (a few sentences) to this PR around the decisions to
- Make a separate
async
protocol - The nuances of the
TaskQueue
so we have some context around these decisions when looking back at it in the future.
AppSyncLogger.debug("[RealtimeConnectionProvider] Status: \(self.status). Connectivity status: \(connectivity.status)") | ||
AppSyncLogger.debug( | ||
"[RealtimeConnectionProvider] Status: \(self.status). Connectivity status: \(connectivity.status)" | ||
) | ||
if self.status == .connected && connectivity.status == .unsatisfied && !self.isStaleConnection { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not PR applicable, but it would be nice to pull these out into descriptive local computed variables or functions at some point.
...rovider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+StaleConnection.swift
Outdated
Show resolved
Hide resolved
...rovider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+StaleConnection.swift
Outdated
Show resolved
Hide resolved
...rovider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync+StaleConnection.swift
Outdated
Show resolved
Hide resolved
...ient/ConnectionProvider/AppsyncRealtimeConnectionAsync/RealtimeConnectionProviderAsync.swift
Show resolved
Hide resolved
AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionErrorHandlerTests.swift
Show resolved
Hide resolved
…tionAsync/RealtimeConnectionProviderAsync+StaleConnection.swift Co-authored-by: Ian Saultz <52051793+atierian@users.noreply.github.com>
…tionAsync/RealtimeConnectionProviderAsync+StaleConnection.swift Co-authored-by: Ian Saultz <52051793+atierian@users.noreply.github.com>
…ors (#85) Co-authored-by: Ian Saultz <52051793+atierian@users.noreply.github.com>
Description of changes:
feat: add swift concurrency (async/await) support. Adds support for async interceptors.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.