Package: effect
Module: Effect
Configuration options for running Effect programs, providing control over interruption and scheduling behavior.
When to use
Use to pass cancellation, scheduler, interruptibility, and fiber-start hooks
when running an Effect at a program boundary.
Details
signal interrupts the fiber, scheduler provides the scheduler service,
uninterruptible starts the fiber uninterruptibly, and onFiberStart
receives the created fiber.
See
runFork for starting a fiber with these optionsrunCallback for callback-based running with these optionsrunPromise for promise-based running with these optionsrunPromiseExit for promise-based running that returns an ExitSignature
export interface RunOptions {
readonly signal?: AbortSignal | undefined
readonly scheduler?: Scheduler | undefined
readonly uninterruptible?: boolean | undefined
readonly onFiberStart?: ((fiber: Fiber<unknown, unknown>) => void) | undefined
}
Since v4.0.0