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

feat: add swift concurrency (async/await) support #85

Merged
merged 36 commits into from
May 24, 2022

Conversation

ameter
Copy link
Contributor

@ameter ameter commented May 24, 2022

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.

ameter added 30 commits April 25, 2022 13:51
@ameter ameter requested a review from a team as a code owner May 24, 2022 13:27
Copy link
Member

@atierian atierian left a 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

  1. Make a separate async protocol
  2. 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 {
Copy link
Member

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.

AppSyncRealTimeClient/Support/TaskQueue.swift Show resolved Hide resolved
ameter and others added 3 commits May 24, 2022 12:54
…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>
@ameter ameter merged commit 5b94284 into main May 24, 2022
@ameter ameter deleted the feat/swift-concurrency-taskqueue branch May 24, 2022 22:35
ameter added a commit that referenced this pull request May 25, 2022
…ors (#85)

Co-authored-by: Ian Saultz <52051793+atierian@users.noreply.github.com>
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.

2 participants