Class EventOrchestratingComputation<C, S, E, CM>Abstract

An abstract algorithm to compute new events based on the old events and the command being handled. It returns all the events, including the events created by handling commands which are triggered by Saga - orchestration included.

Type Parameters

  • C
  • S
  • E
  • CM

Hierarchy (view full)

Implements

Constructors

Properties

decider: IDecider<C, S, E>
initialState: S
saga: ISaga<E, C>

Methods

  • Parameters

    • events: readonly E[]
    • command: C & CM
    • fetch: ((c) => Promise<readonly E[]>)
        • (c): Promise<readonly E[]>
        • Parameters

          Returns Promise<readonly E[]>

    Returns Promise<readonly E[]>

Generated using TypeDoc