@ac-essentials/misc-util
    Preparing search index...

    Interface IBroadcastSubscriber<T>

    A subscriber to a Broadcast channel.

    interface IBroadcastSubscriber<T> {
        closed: boolean;
        close(): void;
        receive(signal?: AbortSignal | null): Promise<T>;
    }

    Type Parameters

    • T
    Index

    Properties

    Methods

    Properties

    closed: boolean

    Indicates whether the subscriber is closed.

    true if the subscriber is closed, false otherwise.

    Methods

    • Wait to receive a message from the broadcast channel.

      Parameters

      • Optionalsignal: AbortSignal | null

        An optional AbortSignal to cancel the receive operation.

      Returns Promise<T>

      If the subscriber has lagged behind and missed messages.