googleapis / gapic-generator-ruby

Generate Ruby gRPC client libraries from Protocol Buffer definitions.
Apache License 2.0
45 stars 32 forks source link

feat: Support timeout-based polling #1100

Closed aandreassa closed 3 months ago

aandreassa commented 3 months ago

Re-opening this PR after moving all changes to a new gapic-polling-harness branch. The polling harness logic was originally reverted in #1083. We will keep all changes in gapic-polling-harness for later usage.

Original PR #1081 description:

Start supporting timeouts in the gapic polling harness.

It removes the need for clients to keep track of their own time variables, as it is done here in bigtable.

Note: timeout deadline is calculated based on when the method wait is called. Late initialization can cause off-by-one errors.

Next PR integrates this change for testing in bigtable.