Package: effect
Module: Cause
Creates a Cause containing a single Interrupt reason,
optionally carrying the interrupting fiber’s ID.
Example (Creating an interrupt cause)
import { Cause } from "effect"
const cause = Cause.interrupt(123)
console.log(cause.reasons.length) // 1
console.log(Cause.isInterruptReason(cause.reasons[0])) // true
See
fail — for typed errorsdie — for untyped defectsSignature
declare const interrupt: (fiberId?: number | undefined) => Cause<never>
Since v2.0.0