Const ExperimentalA key of NetworkEvents.
Optionaldocumentation: SingleNotificationDocumentationOptional notification documentation. Carries
notification['x-experimental']: true to mark the event as experimental.
Optionaloptions: { bufferStrategy?: NetworkEventBufferStrategy<NetworkEvents[EventType]> }OptionalbufferStrategy?: NetworkEventBufferStrategy<NetworkEvents[EventType]>How to buffer pre-registration emits. Defaults to 'queue'.
emit (usable immediately), registeredEmitter (resolves to the underlying emitter, or
rejects if registration failed), and dispose.
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
emitis usable immediately. Emits made before central registration completes are buffered peroptions.bufferStrategyand flushed once registration succeeds; after thatemitpasses straight through. If registration fails, buffered events are dropped (with a warning) andregisteredEmitterrejects so the caller can respond.