Hyperlinkv0.9.0-beta.0

Gate

Gate.LayerConfiginterfacesrc/Gate.ts:422
LayerConfig<I, A, E, R>

Layer / serve config — the tag carries wire schemas; this supplies the gated effect.

models
Source src/Gate.ts:42216 lines
export interface LayerConfig<I, A, E, R> {
  /** Override telemetry / status `resourceId`; defaults to the tag key. */
  readonly name?: string;
  /** Unit gates may pass a bare effect; parameterized gates use `(input) => Effect`. */
  readonly effect: LayerEffect<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 7 symbols