SubscribeOnObservable.d.ts 985 B

12345678910111213141516171819202122232425
  1. import { SchedulerLike, SchedulerAction } from '../types';
  2. import { Subscriber } from '../Subscriber';
  3. import { Subscription } from '../Subscription';
  4. import { Observable } from '../Observable';
  5. export interface DispatchArg<T> {
  6. source: Observable<T>;
  7. subscriber: Subscriber<T>;
  8. }
  9. /**
  10. * We need this JSDoc comment for affecting ESDoc.
  11. * @extends {Ignored}
  12. * @hide true
  13. */
  14. export declare class SubscribeOnObservable<T> extends Observable<T> {
  15. source: Observable<T>;
  16. private delayTime;
  17. private scheduler;
  18. /** @nocollapse */
  19. static create<T>(source: Observable<T>, delay?: number, scheduler?: SchedulerLike): Observable<T>;
  20. /** @nocollapse */
  21. static dispatch<T>(this: SchedulerAction<T>, arg: DispatchArg<T>): Subscription;
  22. constructor(source: Observable<T>, delayTime?: number, scheduler?: SchedulerLike);
  23. /** @deprecated This is an internal implementation detail, do not use. */
  24. _subscribe(subscriber: Subscriber<T>): Subscription;
  25. }