InterruptA fiber interruption signal, optionally carrying the ID of the fiber that initiated the interruption.
Details
Use isInterruptReason to narrow a Reason to this type.
Example (Accessing the fiber ID)
import { Cause } from "effect"
const cause = Cause.interrupt(123)
const reason = cause.reasons[0]
if (Cause.isInterruptReason(reason)) {
console.log(reason.fiberId) // 123
}modelsisInterruptReason
Source effect/Cause.ts:3903 lines
export interface Interrupt extends Cause.interface Cause<out E>.ReasonProto<Tag extends string>Base interface shared by all reason types (Fail, Die, Interrupt).
Details
Every reason carries:
_tag — discriminant string ("Fail", "Die", or "Interrupt")
annotations — tracing metadata attached by the runtime
annotate() — returns a copy with additional annotations
ReasonProto<"Interrupt"> {
readonly Interrupt.fiberId: number | undefinedfiberId: number | undefined
}Referenced by 5 symbols