2016-05-04 02:28:50 +00:00
|
|
|
export declare class Task {
|
2016-05-14 02:28:22 +00:00
|
|
|
name: string;
|
2016-05-04 02:28:50 +00:00
|
|
|
task: any;
|
|
|
|
running: boolean;
|
2016-05-06 00:05:45 +00:00
|
|
|
idle: boolean;
|
2016-05-04 02:28:50 +00:00
|
|
|
buffered: boolean;
|
2016-05-04 03:20:51 +00:00
|
|
|
bufferCounter: number;
|
|
|
|
bufferMax: number;
|
2016-05-04 02:28:50 +00:00
|
|
|
private _counterTriggerAbsolute;
|
|
|
|
private _state;
|
|
|
|
preTask: Task;
|
|
|
|
afterTask: Task;
|
2016-05-05 16:36:31 +00:00
|
|
|
constructor(optionsArg: {
|
|
|
|
taskFunction: any;
|
2016-05-04 02:28:50 +00:00
|
|
|
preTask?: Task;
|
|
|
|
afterTask?: Task;
|
|
|
|
buffered?: boolean;
|
2016-05-05 17:21:50 +00:00
|
|
|
bufferMax?: number;
|
2016-05-04 02:28:50 +00:00
|
|
|
});
|
2016-05-06 00:05:45 +00:00
|
|
|
trigger(): any;
|
2016-05-05 17:21:50 +00:00
|
|
|
triggerUnBuffered(): any;
|
|
|
|
triggerBuffered(): any;
|
2016-05-04 02:28:50 +00:00
|
|
|
state: string;
|
|
|
|
}
|