mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
|
import { Scheduler } from '../Scheduler';
|
||
|
import { Action } from './Action';
|
||
|
import { AsyncAction } from './AsyncAction';
|
||
|
import { SchedulerAction } from '../types';
|
||
|
import { Subscription } from '../Subscription';
|
||
|
export declare class AsyncScheduler extends Scheduler {
|
||
|
static delegate?: Scheduler;
|
||
|
actions: Array<AsyncAction<any>>;
|
||
|
/**
|
||
|
* A flag to indicate whether the Scheduler is currently executing a batch of
|
||
|
* queued actions.
|
||
|
* @type {boolean}
|
||
|
* @deprecated internal use only
|
||
|
*/
|
||
|
active: boolean;
|
||
|
/**
|
||
|
* An internal ID used to track the latest asynchronous task such as those
|
||
|
* coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
|
||
|
* others.
|
||
|
* @type {any}
|
||
|
* @deprecated internal use only
|
||
|
*/
|
||
|
scheduled: any;
|
||
|
constructor(SchedulerAction: typeof Action, now?: () => number);
|
||
|
schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay?: number, state?: T): Subscription;
|
||
|
flush(action: AsyncAction<any>): void;
|
||
|
}
|