CircuitBreakerExecuteOptions

import { CircuitBreakerExecuteOptions } from "jsr:@ende/async/unstable-circuit-breaker";

interface · experimental

interface CircuitBreakerExecuteOptions

Options for CircuitBreaker.execute.

Properties

signal

signal?: AbortSignal

An optional abort signal that can be used to cancel the operation before it starts. If the signal is already aborted when execute is called, the operation will fail immediately without executing the function.

Note: This only checks the abort status before execution. It does not interrupt an in-progress operation — pass the signal to your async function for that behavior.

Source