Utility methods for frequently used delay sequences.
Retry the specified request with a backoff scheme.
Retry the specified request with a backoff scheme.
After a stream from one of the requests starts emitting events, all the other requests are unsubscribed from, and not further retrying takes place.
To create different backoff schemes, see the Backoff
object.
the duration of subsequent delays between requests
the code that creates the request and a stream of replies
the stream of replies that was first to emit an event
Retry the specified request a fixed number of times.
Retry the specified request a fixed number of times.
the number of times to retry the request
the delay between each request
the code that creates the request and a stream of replies
the stream of replies that was first to emit an event
General communication patterns.
Allows specifying communication patterns in a generic way.
As an example, one can declaratively retry server requests until a timeout, by sending a throttled sequence of requests until a timeout, and taking the first reply that comes: