-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(common): revamp the async polling loop (#7762)
* Do not drop a cancellation request made before we receive the `longrunning::Operation`. Instead, remember that a cancellation request was made, and then cancel the operation once we know it has started. This (probabilistically) saves a significant chunk of time in the `spanner_cancel_backup_create` sample, as we now always cancel the `CreateBackup()`. * Do not fabricate a cancelled `Status`. The only way we really know an operation has been cancelled is by examining the `GetOperation()` response.
- Loading branch information
Showing
4 changed files
with
95 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters