2016-07-31 22:53:27 +00:00
|
|
|
/// <reference types="q" />
|
|
|
|
import plugins = require("./taskbuffer.plugins");
|
2016-08-01 11:17:15 +00:00
|
|
|
import { Task, ITaskFunction } from "./taskbuffer.classes.task";
|
|
|
|
export declare let emptyTaskFunction: ITaskFunction;
|
2016-05-05 16:36:31 +00:00
|
|
|
export declare let isTask: (taskArg: any) => boolean;
|
2016-05-06 00:05:45 +00:00
|
|
|
export declare let isTaskTouched: (taskArg: Task, touchedTasksArray: Task[]) => boolean;
|
2016-08-02 09:09:42 +00:00
|
|
|
export declare let runTask: (taskArg: Task, optionsArg: {
|
|
|
|
x?: any;
|
|
|
|
touchedTasksArray?: Task[];
|
2016-07-31 22:53:27 +00:00
|
|
|
}) => plugins.Q.Promise<{}>;
|
2016-08-01 14:10:00 +00:00
|
|
|
export interface cycleObject {
|
|
|
|
cycleCounter: number;
|
|
|
|
deferred: plugins.Q.Deferred<any>;
|
|
|
|
}
|
|
|
|
export declare class CycleCounter {
|
|
|
|
task: Task;
|
|
|
|
cycleObjectArray: cycleObject[];
|
|
|
|
constructor(taskArg: Task);
|
|
|
|
getPromiseForCycle(cycleCountArg: number): plugins.Q.Promise<{}>;
|
|
|
|
informOfCycle(): void;
|
|
|
|
}
|
|
|
|
export declare class BufferRunner {
|
|
|
|
task: Task;
|
|
|
|
bufferCounter: number;
|
|
|
|
bufferMax: number;
|
|
|
|
running: boolean;
|
|
|
|
constructor(taskArg: Task);
|
2016-08-02 09:09:42 +00:00
|
|
|
private _run(x);
|
2016-08-01 14:10:00 +00:00
|
|
|
setBufferMax(bufferMaxArg: number): void;
|
2016-08-02 09:09:42 +00:00
|
|
|
trigger(x: any): PromiseLike<any>;
|
2016-08-01 14:10:00 +00:00
|
|
|
}
|