Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ReplaySubject.d.ts 982B

12345678910111213141516171819202122232425
  1. import { Subject } from './Subject';
  2. import { SchedulerLike } from './types';
  3. import { Subscriber } from './Subscriber';
  4. import { Subscription } from './Subscription';
  5. /**
  6. * A variant of Subject that "replays" or emits old values to new subscribers.
  7. * It buffers a set number of values and will emit those values immediately to
  8. * any new subscribers in addition to emitting new values to existing subscribers.
  9. *
  10. * @class ReplaySubject<T>
  11. */
  12. export declare class ReplaySubject<T> extends Subject<T> {
  13. private scheduler?;
  14. private _events;
  15. private _bufferSize;
  16. private _windowTime;
  17. private _infiniteTimeWindow;
  18. constructor(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike);
  19. private nextInfiniteTimeWindow;
  20. private nextTimeWindow;
  21. /** @deprecated This is an internal implementation detail, do not use. */
  22. _subscribe(subscriber: Subscriber<T>): Subscription;
  23. _getNow(): number;
  24. private _trimBufferThenGetEvents;
  25. }