Package: effect
Module: Cause
Returns true if the cause contains at least one Interrupt reason.
Example (Checking for interruptions)
import { Cause } from "effect"
console.log(Cause.hasInterrupts(Cause.interrupt(123))) // true
console.log(Cause.hasInterrupts(Cause.fail("error"))) // false
See
hasInterruptsOnly — true only when all reasons are interruptshasFails — check for typed errorshasDies — check for defectsSignature
declare const hasInterrupts: <E>(self: Cause<E>) => boolean
Since v4.0.0