effect-io-ai

Package: effect
Module: RateLimiter

RateLimiter.RateLimiter

Limits the number of calls to a resource to a maximum amount in some interval.

Note that only the moment of starting the effect is rate limited: the number of concurrent executions is not bounded.

Signature

export interface RateLimiter {
  <A, E, R>(task: Effect<A, E, R>): Effect<A, E, R>
}

Source

Since v2.0.0