GroupedObservable

An Observable representing values belonging to the same group represented by a common key. The values emitted by a GroupedObservable come from the source Observable. The common key is available as the field key on a GroupedObservable instance.

class GroupedObservable<K, T> extends Observable {
  constructor(
    key: K,
    groupSubject: Subject<T>,
    refCountSubscription?: RefCountSubscription
  );
  key: K;
  _subscribe(subscriber: Subscriber<T>);

  // inherited from index/Observable
  static create: Function;
  static if: typeof iif;
  static throw: typeof throwError;
  constructor(
    subscribe?: (
      this: Observable<T>,
      subscriber: Subscriber<T>
    ) => TeardownLogic
  );
  _isScalar: boolean;
  source: Observable<any>;
  operator: Operator<any, T>;
  lift<R>(operator: Operator<T, R>): Observable<R>;
  subscribe(
    observerOrNext?:
      | NextObserver<T>
      | ErrorObserver<T>
      | CompletionObserver<T>
      | ((value: T) => void),
    error?: (error: any) => void,
    complete?: () => void
  ): Subscription;
  _trySubscribe(sink: Subscriber<T>): TeardownLogic;
  forEach(
    next: (value: T) => void,
    promiseCtor?: PromiseConstructorLike
  ): Promise<void>;
  pipe(...operations: OperatorFunction<any, any>[]): Observable<any>;
  toPromise(promiseCtor?: PromiseConstructorLike): Promise<T>;
}

Constructor

constructor()

Firma

constructor(key: K, groupSubject: Subject, refCountSubscription?: RefCountSubscription)

Parámetros

key

Tipo: K.

groupSubject

Tipo: Subject.

refCountSubscription

Opcional. El valor por defecto es undefined.

Tipo: RefCountSubscription.

Propiedades

PropiedadTipoDescripción

key

K

Declarado en el constructor.

Métodos

_subscribe()

Firma

_subscribe(subscriber: Subscriber)

Parámetros

subscriber

Tipo: Subscriber.

Recursos adicionales

Documentación oficial en inglés

Last updated