Skip to main content Link Search Menu Expand Document (external link)

Runtime overview

Added in v1.0.0


Table of contents


constructors

makeRunMain

Signature

export declare const makeRunMain: (
  f: <E, A>(options: { readonly fiber: Fiber.RuntimeFiber<A, E>; readonly teardown: Teardown }) => void
) => RunMain

Added in v1.0.0

model

RunMain (interface)

Signature

export interface RunMain {
  (options?: {
    readonly disableErrorReporting?: boolean | undefined
    readonly disablePrettyLogger?: boolean | undefined
    readonly teardown?: Teardown | undefined
  }): <E, A>(effect: Effect.Effect<A, E>) => void
  <E, A>(
    effect: Effect.Effect<A, E>,
    options?: {
      readonly disableErrorReporting?: boolean | undefined
      readonly disablePrettyLogger?: boolean | undefined
      readonly teardown?: Teardown | undefined
    }
  ): void
}

Added in v1.0.0

Teardown (interface)

Signature

export interface Teardown {
  <E, A>(exit: Exit.Exit<E, A>, onExit: (code: number) => void): void
}

Added in v1.0.0

teardown

defaultTeardown

Signature

export declare const defaultTeardown: Teardown

Added in v1.0.0