You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the methods in the AWS SDK for Go have a "WithContext" variant that allows callers to pass in a context. I have found this feature useful for cancelling long-running calls when the parent context is canceled. It would be nice to have a SyncWithContext() method with equivalent functionality.
Deliverables
A method that allows the caller to provide a context to the underlying sync code exists
Approach (optional)
It looks like the bulk of the code already accepts a context and the Sync method passes context.Background() to this code. We could add SyncWithContext() method that is identical to Sync() except that it uses a context parameter instead of Background(). Then Sync() could just call SyncWithContext() with context.Background() as a parameter.
The text was updated successfully, but these errors were encountered:
Objective
Most of the methods in the AWS SDK for Go have a "WithContext" variant that allows callers to pass in a context. I have found this feature useful for cancelling long-running calls when the parent context is canceled. It would be nice to have a SyncWithContext() method with equivalent functionality.
Deliverables
Approach (optional)
It looks like the bulk of the code already accepts a context and the Sync method passes
context.Background()
to this code. We could addSyncWithContext()
method that is identical toSync()
except that it uses a context parameter instead ofBackground()
. ThenSync()
could just callSyncWithContext()
withcontext.Background()
as a parameter.The text was updated successfully, but these errors were encountered: