BackpressureThrottleBackend
class BackpressureThrottleBackend[F[_], +S](delegate: SttpBackend[F, S], queueOf1: Queue[F, Unit], delay: FiniteDuration)(implicit evidence$1: Temporal[F]) extends SttpBackend[F, S]
When 429 Too many requests or 503 Service Unavailable error is encountered, new requests are blocked for the specified duration
- Value parameters:
- queueOf1
must be a queue with one element already placed in the queue
trait SttpBackend[F, S]
class Object
trait Matchable
class Any
Value members
Concrete methods
A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.
A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.
- Definition Classes
- SttpBackend