google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

Refactor AsyncPollingLoop to accept an Operation directly

Open scotthart opened this issue 1 year ago • 0 comments

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.

scotthart avatar Jun 14 '24 16:06 scotthart