googleapis / gapic-generator-ruby

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

feat(gapic-common): Support timeout-based polling #1081

Closed aandreassa closed 3 months ago

aandreassa commented 4 months ago

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.

aandreassa commented 3 months ago

Closing in favor of #1100.