Skip to main content

externalDomainEventQueue

Index

Constructors

Accessors

Methods

Constructors

externalconstructor

Accessors

externalsceneId

  • get sceneId(): CorrelationId
  • Returns CorrelationId

Methods

externalfirst

externalenqueue

  • enqueue(event: DomainEvent & { sceneId: CorrelationId }): void
  • Parameters

    • externalevent: DomainEvent & { sceneId: CorrelationId }

    Returns void

externaldrain

externalreduce

  • reduce<U>(fn: (previousValue: U, currentValue: DomainEvent & { sceneId: CorrelationId }, currentIndex: number) => U, initialValue: U): U
  • Type parameters

    • U

    Parameters

    • externalfn: (previousValue: U, currentValue: DomainEvent & { sceneId: CorrelationId }, currentIndex: number) => U
      • externalinitialValue: U

      Returns U