papi-dts
    Preparing search index...

    Variable createBufferedNetworkEventEmitterConst Experimental

    createBufferedNetworkEventEmitter: <EventType extends NetworkEventTypes>(
        eventType: EventType,
        documentation?: SingleNotificationDocumentation,
        options?: {
            bufferStrategy?: NetworkEventBufferStrategy<NetworkEvents[EventType]>;
        },
    ) => {
        dispose: () => void;
        emit: (event: NetworkEvents[EventType]) => void;
        registeredEmitter: Promise<PlatformEventEmitter<NetworkEvents[EventType]>>;
    }

    Synchronously create a buffered emitter for a single-source network event. Use this for events that may be emitted before the network emitter finishes registering — e.g. from a UI handler or a command that can fire during extension activation, where the eager createNetworkEventEmitterAsync would leave a module-level emitter undefined.

    The returned emit is usable immediately. Emits made before central registration completes are buffered per options.bufferStrategy and flushed once registration succeeds; after that emit passes straight through. If registration fails, buffered events are dropped (with a warning) and registeredEmitter rejects so the caller can respond.

    Type declaration