Weighted_limiter_async
module Outcome : sig ... end
type 'a t = {
pool : 'a Limiter_async.Resource_throttle.t;
token_bucket : Limiter_async.Token_bucket.t;
}
Weight rated limiter HTTP client connection pool.
val enqueue' : weight:int -> 'a t -> ('a -> 'response Async.Deferred.t) -> 'response Outcome.t Async.Deferred.t
val enqueue_timeout' : weight:int -> timeout:Core.Time_ns.Span.t -> 'a t -> (?timeout:Core.Time_ns.Span.t -> 'a -> 'response Async.Deferred.t) -> 'response Outcome.t Async.Deferred.t