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

ChildExecutorDecision.ts overview

Since v2.0.0


Exports Grouped by Category


constructors

Close

Signature

declare const Close: (value: unknown) => ChildExecutorDecision

Source

Since v2.0.0

Continue

Signature

declare const Continue: (_: void) => ChildExecutorDecision

Source

Since v2.0.0

Yield

Signature

declare const Yield: (_: void) => ChildExecutorDecision

Source

Since v2.0.0

folding

match

Folds over a ChildExecutorDecision to produce a value of type A.

Signature

declare const match: {
  <A>(options: {
    readonly onContinue: () => A
    readonly onClose: (value: unknown) => A
    readonly onYield: () => A
  }): (self: ChildExecutorDecision) => A
  <A>(
    self: ChildExecutorDecision,
    options: { readonly onContinue: () => A; readonly onClose: (value: unknown) => A; readonly onYield: () => A }
  ): A
}

Source

Since v2.0.0

models

ChildExecutorDecision (type alias)

Signature

type ChildExecutorDecision = Continue | Close | Yield

Source

Since v2.0.0

Close (interface)

Close the current substream with a given value and pass execution to the next substream

Signature

export interface Close extends ChildExecutorDecision.Proto {
  readonly _tag: "Close"
  readonly value: unknown
}

Source

Since v2.0.0

Continue (interface)

Continue executing the current substream

Signature

export interface Continue extends ChildExecutorDecision.Proto {
  readonly _tag: "Continue"
}

Source

Since v2.0.0

Yield (interface)

Pass execution to the next substream. This either pulls a new element from upstream, or yields to an already created active substream.

Signature

export interface Yield extends ChildExecutorDecision.Proto {
  readonly _tag: "Yield"
}

Source

Since v2.0.0

refinements

isChildExecutorDecision

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

Signature

declare const isChildExecutorDecision: (u: unknown) => u is ChildExecutorDecision

Source

Since v2.0.0

isClose

Returns true if the specified ChildExecutorDecision is a Close, false otherwise.

Signature

declare const isClose: (self: ChildExecutorDecision) => self is Close

Source

Since v2.0.0

isContinue

Returns true if the specified ChildExecutorDecision is a Continue, false otherwise.

Signature

declare const isContinue: (self: ChildExecutorDecision) => self is Continue

Source

Since v2.0.0

isYield

Returns true if the specified ChildExecutorDecision is a Yield, false otherwise.

Signature

declare const isYield: (self: ChildExecutorDecision) => self is Yield

Source

Since v2.0.0

symbols

ChildExecutorDecisionTypeId

Signature

declare const ChildExecutorDecisionTypeId: unique symbol

Source

Since v2.0.0

ChildExecutorDecisionTypeId (type alias)

Signature

type ChildExecutorDecisionTypeId = typeof ChildExecutorDecisionTypeId

Source

Since v2.0.0

utils

ChildExecutorDecision (namespace)

Source

Since v2.0.0

Proto (interface)

Signature

export interface Proto {
  readonly [ChildExecutorDecisionTypeId]: ChildExecutorDecisionTypeId
}

Source

Since v2.0.0