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

MergeDecision overview

Added in v2.0.0


Table of contents


constructors

Await

Signature

export declare const Await: <R, E0, Z0, E, Z>(
  f: (exit: Exit.Exit<Z0, E0>) => Effect.Effect<Z, E, R>
) => MergeDecision<R, E0, Z0, E, Z>

Added in v2.0.0

AwaitConst

Signature

export declare const AwaitConst: <Z, E, R>(effect: Effect.Effect<Z, E, R>) => MergeDecision<R, unknown, unknown, E, Z>

Added in v2.0.0

Done

Signature

export declare const Done: <Z, E, R>(effect: Effect.Effect<Z, E, R>) => MergeDecision<R, unknown, unknown, E, Z>

Added in v2.0.0

folding

match

Signature

export declare const match: {
  <R, E0, Z0, E, Z, Z2>(options: {
    readonly onDone: (effect: Effect.Effect<Z, E, R>) => Z2
    readonly onAwait: (f: (exit: Exit.Exit<Z0, E0>) => Effect.Effect<Z, E, R>) => Z2
  }): (self: MergeDecision<R, E0, Z0, E, Z>) => Z2
  <R, E0, Z0, E, Z, Z2>(
    self: MergeDecision<R, E0, Z0, E, Z>,
    options: {
      readonly onDone: (effect: Effect.Effect<Z, E, R>) => Z2
      readonly onAwait: (f: (exit: Exit.Exit<Z0, E0>) => Effect.Effect<Z, E, R>) => Z2
    }
  ): Z2
}

Added in v2.0.0

models

MergeDecision (interface)

Signature

export interface MergeDecision<out R, in E0, in Z0, out E, out Z> extends MergeDecision.Variance<R, E0, Z0, E, Z> {}

Added in v2.0.0

refinements

isMergeDecision

Returns true if the specified value is a MergeDecision, false otherwise.

Signature

export declare const isMergeDecision: (u: unknown) => u is MergeDecision<unknown, unknown, unknown, unknown, unknown>

Added in v2.0.0

symbols

MergeDecisionTypeId

Signature

export declare const MergeDecisionTypeId: typeof MergeDecisionTypeId

Added in v2.0.0

MergeDecisionTypeId (type alias)

Signature

export type MergeDecisionTypeId = typeof MergeDecisionTypeId

Added in v2.0.0

utils

MergeDecision (namespace)

Added in v2.0.0

Variance (interface)

Signature

export interface Variance<out R, in E0, in Z0, out E, out Z> {
  readonly [MergeDecisionTypeId]: {
    _R: Types.Covariant<R>
    _E0: Types.Contravariant<E0>
    _Z0: Types.Contravariant<Z0>
    _E: Types.Covariant<E>
    _Z: Types.Covariant<Z>
  }
}

Added in v2.0.0