iya-sts
    Preparing search index...

    Variable transitionOnce

    transitionOnce: (
        kind: string,
        streamId: unknown,
        emit: () => void,
    ) => Promise<boolean> = ...

    Type Declaration

      • (kind: string, streamId: unknown, emit: () => void): Promise<boolean>
      • Lets a stream's dead or revived transition be reported by one process of the cluster, through a claim on the realm, stream and transition that lives half the dead-stream timeout.

        With no shared store, or one that cannot be asked, emit runs here.

        Parameters

        • kind: string

          dead or revived

        • streamId: unknown

          the stream's id

        • emit: () => void

          reports the transition

        Returns Promise<boolean>

        a promise of whether emit ran in this process