Hyperlinkv0.9.0-beta.0

Gate

Source src/Gate.ts:39619 lines
export interface ServiceConfig<
  I extends Schema.Top = typeof Schema.Void,
  A extends Schema.Top = typeof Schema.Void,
  E extends Schema.Top = typeof Schema.Never,
  R = never,
> extends WireSchemas<I, A, E> {
  /** Unit gates may pass a bare effect; parameterized gates use `(input) => Effect`. */
  readonly effect: ServiceEffect<I, A, E, R>;
  /**
   * Max concurrent executions through this gate.
   * @default 1
   */
  readonly concurrency?: number;
  /**
   * Optional Effect `RateLimiter` on each `run` (before the concurrency semaphore).
   * Omitted = no rate limit (only {@link concurrency}).
   */
  readonly rateLimit?: RateLimitOptions;
}
Referenced by 2 symbols