work.suroh.tk/node_modules/rxjs/observable/SubscribeOnObservable.d.ts

24 lines
913 B
TypeScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
import { Action } from '../scheduler/Action';
import { IScheduler } from '../Scheduler';
import { Subscriber } from '../Subscriber';
import { Subscription } from '../Subscription';
import { Observable } from '../Observable';
export interface DispatchArg<T> {
source: Observable<T>;
subscriber: Subscriber<T>;
}
/**
* We need this JSDoc comment for affecting ESDoc.
* @extends {Ignored}
* @hide true
*/
export declare class SubscribeOnObservable<T> extends Observable<T> {
source: Observable<T>;
private delayTime;
private scheduler;
static create<T>(source: Observable<T>, delay?: number, scheduler?: IScheduler): Observable<T>;
static dispatch<T>(this: Action<T>, arg: DispatchArg<T>): Subscription;
constructor(source: Observable<T>, delayTime?: number, scheduler?: IScheduler);
/** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>): Subscription;
}