Class ActionObserver<I, O>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.

See

  • Actor
  • Bus

Type Parameters

  • I extends IAction

    The input type of an actor.

  • O extends IActorOutput

    The output type of an actor.

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>

        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