rxjs-zone-less
Version:
A set of wrappers for RxJS to avoid unnecessary change detection and zone interference in Angular.
24 lines (23 loc) • 759 B
TypeScript
import { Action } from '../Action';
import { AsyncAction } from './AsyncAction';
import { Scheduler } from '../scheduler';
export declare class AsyncScheduler extends Scheduler {
actions: Array<AsyncAction<any>>;
/**
* A flag to indicate whether the Scheduler is currently executing a batch of
* queued actions.
* @type {boolean}
* @internal
*/
_active: boolean;
/**
* An internal ID used to track the latest asynchronous task such as those
* coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
* others.
* @type {any}
* @internal
*/
_scheduled?: any;
constructor(SchedulerAction: typeof Action, now?: () => number);
flush(action: AsyncAction<any>): void;
}