Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Publisher<T>

Declares that a type can transmit a sequence of values over time.

Type parameters

  • T

Hierarchy

  • Publisher

Implemented by

Index

Methods

Methods

get

  • get(): Promise<T>
  • Request a single value from the publisher.

    Returns Promise<T>

    A promise that resolves to the next value from the publisher.

subscribe

  • Subscribes to the publisher.

    Parameters

    • subscriber: Subscriber<T>

      The subscriber to subscribe to the publisher.

    Returns Promise<Subscription>

    A subscription object that can be used to unsubscribe from the publisher.

Generated using TypeDoc