google-cloud-cpp
google-cloud-cpp copied to clipboard
Refactor AsyncPollingLoop to accept an Operation directly
Currently in AsyncAwaitLongRunningOperation we can construct a future<StatusOr<Operation>> from an Operation just so we can pass it to AsyncPollingLoop. It would be preferable to refactor AsyncPollingLoop such that it could accept either.
A brief attempt to do this refactoring was made, but resulted in unit test failures when trying to cancel the future.