Creates a retriable optical by exponential backoff method. It increases the delay duration (100 milliseconds) multiplied by the power of two, but its exponent stops at 23.
Parameters
maxRetries: number
Maximum retry counts.
waiter: ((milliseconds) => Promise<void>) = ...
The waiter function to delay. Defaults to setTimeout method.
Creates a retriable optical by exponential backoff method. It increases the delay duration (100 milliseconds) multiplied by the power of two, but its exponent stops at 23.