Class ActionObserver<I, O, TS>Abstract

An ActionObserver can passively listen to Actor#run inputs and outputs for all actors on a certain bus.

ActionObserver should not edit inputs and outputs, they should be considered immutable.

  • Actor
  • Bus

Type Parameters

  • I extends IAction

    The input type of an actor.

  • O extends IActorOutput

    The output type of an actor.

  • TS = undefined

    The test side data type.

Hierarchy

  • ActionObserver

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    Methods

    • Invoked when an action was run by an actor.

      Parameters

      • actor: Actor<I, IActorTest, O, TS>

        The action on which the Actor#run method was invoked.

      • action: I

        The original action input.

      • output: Promise<O>

        A promise resolving to the final action output.

      Returns void