(fiberId?: number | undefined): InterruptCreates a standalone Interrupt reason (not wrapped in a Cause),
optionally carrying the interrupting fiber's ID.
When to use
Use when constructing a standalone interrupt reason for fromReasons or direct comparison.
Example (Creating an Interrupt reason)
import { Cause } from "effect"
const reason = Cause.makeInterruptReason(42)
console.log(reason._tag) // "Interrupt"
console.log(reason.fiberId) // 42Source effect/Cause.ts:6171 lines
export const const makeInterruptReason: (
fiberId?: number | undefined
) => Interrupt
Creates a standalone Interrupt reason (not wrapped in a Cause),
optionally carrying the interrupting fiber's ID.
When to use
Use when constructing a standalone interrupt reason for
fromReasons
or direct comparison.
Example (Creating an Interrupt reason)
import { Cause } from "effect"
const reason = Cause.makeInterruptReason(42)
console.log(reason._tag) // "Interrupt"
console.log(reason.fiberId) // 42
makeInterruptReason: (fiberId: number | undefinedfiberId?: number | undefined) => Interrupt = import effecteffect.const makeInterruptReason: (
fiberId?: number | undefined
) => Cause.Interrupt
makeInterruptReasonReferenced by 1 symbols