Package: effect
Module: Schema
Iso representation used for CauseReason schemas.
Details
Failures are represented with a Fail tag and encoded error, defects with a
Die tag and encoded defect, and interrupts with an optional fiberId.
Signature
type CauseReasonIso<E, D> = {
readonly _tag: "Fail"
readonly error: E["Iso"]
} | {
readonly _tag: "Die"
readonly error: D["Iso"]
} | {
readonly _tag: "Interrupt"
readonly fiberId: number | undefined
}
Since v4.0.0