Skip to main content Link Search Menu Expand Document (external link)

DurableRateLimiter.ts overview

Since v1.0.0


Exports Grouped by Category


Accessors

rateLimit

Signature

declare const rateLimit: (options: {
  readonly name: string
  readonly algorithm?: "fixed-window" | "token-bucket" | undefined
  readonly window: Duration.DurationInput
  readonly limit: number
  readonly key: string
  readonly tokens?: number | undefined
}) => Activity.Activity<typeof Schema.Void, typeof RateLimiter.RateLimitStoreError, RateLimiter.RateLimiter>

Source

Since v1.0.0