Class RunResult<V>

Type Parameters

  • V

Constructors

Properties

logger: Logger
store: Store
value: V

Methods

  • Emit an event within the context of the run result.

    Type Parameters

    • P

    Parameters

    • event: string | IEvent<P>

      The event to emit.

    • Optionalpayload: P extends undefined | void
          ? undefined
          : P

      The payload to emit.

    Returns Promise<void>

  • Run a task within the context of the run result.

    Type Parameters

    Parameters

    Returns Promise<undefined | O>

    The result of the task.