Hyperlinkv0.8.0-beta.28

Cause

Cause.hasInterruptsconsteffect/Cause.ts:973
<E>(self: Cause<E>): boolean

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
Source effect/Cause.ts:9731 lines
export const hasInterrupts: <E>(self: Cause<E>) => boolean = effect.hasInterrupts