Table of contents
- Abort (interface)
- Done (interface)
- Interrupt (interface)
- Raise (interface)
- Cause (type alias)
- Exit (type alias)
- interrupt (constant)
- abort (function)
- done (function)
- raise (function)
Abort (interface)
Signature
export interface Abort {
readonly _tag: ExitTag.Abort
readonly abortedWith: unknown
}
Done (interface)
Signature
export interface Done<A> {
readonly _tag: ExitTag.Done
readonly value: A
}
Interrupt (interface)
Signature
export interface Interrupt {
readonly _tag: ExitTag.Interrupt
}
Raise (interface)
Signature
export interface Raise<E> {
readonly _tag: ExitTag.Raise
readonly error: E
}
Cause (type alias)
Signature
export type Cause<E> = Raise<E> | Abort | Interrupt
Exit (type alias)
Signature
export type Exit<E, A> = Done<A> | Cause<E>
interrupt (constant)
Signature
export const interrupt: Interrupt = ...
abort (function)
Signature
export function abort(a: unknown): Abort { ... }
done (function)
Signature
export function done<A>(v: A): Done<A> { ... }
raise (function)
Signature
export function raise<E>(e: E): Raise<E> { ... }