Class EventOrchestratingComputation<C, S, E>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

Hierarchy

Implements

Constructors

Properties

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

Methods

  • Parameters

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

          • c: C

          Returns Promise<readonly E[]>

    Returns Promise<readonly E[]>

Generated using TypeDoc