grpc-swift
grpc-swift copied to clipboard
Is there a way to specify retryableStatusCodes?
What are you trying to achieve?
We are looking to implement a retry policy on GPRCStatus codes for.resourceExhausted status'.
Looking at the Android implementation, they have a settable retryableStatusCodes in their https://github.com/grpc/grpc-java/blob/48192db68e67f40a1f698e3f5bd63ca457398fbd/core/src/main/java/io/grpc/internal/RetryPolicy.java#L39 which allows them to specify this on their configuration.
Is there a recommended implementation for this in grpc-swift?
Not at the moment I'm afraid. You'll need to either handle retries manually at the call site or do it via an interceptor.