Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

DenoRuntime unstable

Deno helper for running a root Effect program.

1 exports Since v4.0.0 Source

Running

runMain

unstable
Since v4.0.0

Run an Effect as the entrypoint to a Deno application.

Signature

declare const runMain: {
(options?: {
readonly disableErrorReporting?: boolean;
readonly teardown?: Runtime.Teardown;
}): <E, A>(effect: Effect<A, E>) => void;
<E, A>(effect: Effect<A, E>, options?: {
readonly disableErrorReporting?: boolean;
readonly teardown?: Runtime.Teardown;
}): void;
}