Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Preventing failure cascades with open and half-open states
import tryo from "tryo"; const runner = tryo({ circuitBreaker: { failureThreshold: 2, resetTimeout: 1000, halfOpenRequests: 1, }, });
failureThreshold
resetTimeout
half-open
import { run } from "tryo"; const r = await run(async () => 1, { circuitBreaker: { failureThreshold: 3, resetTimeout: 1500 }, });