taskbuffer/dist/taskbuffer.classes.helpers.d.ts

31 lines
1008 B
TypeScript
Raw Normal View History

2016-07-31 22:53:27 +00:00
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;
2017-01-19 16:26:35 +00:00
export declare let isTask: (taskArg: Task) => boolean;
2016-05-06 00:05:45 +00:00
export declare let isTaskTouched: (taskArg: Task, touchedTasksArray: Task[]) => boolean;
export declare let runTask: (taskArg: Task, optionsArg: {
x?: any;
touchedTasksArray?: Task[];
2017-01-19 16:26:35 +00:00
}) => Promise<{}>;
2016-08-01 14:10:00 +00:00
export interface cycleObject {
cycleCounter: number;
2017-01-19 16:26:35 +00:00
deferred: plugins.q.Deferred<any>;
2016-08-01 14:10:00 +00:00
}
export declare class CycleCounter {
task: Task;
cycleObjectArray: cycleObject[];
constructor(taskArg: Task);
2017-01-19 16:26:35 +00:00
getPromiseForCycle(cycleCountArg: number): Promise<{}>;
2016-08-03 12:51:43 +00:00
informOfCycle(x: any): void;
2016-08-01 14:10:00 +00:00
}
export declare class BufferRunner {
task: Task;
bufferCounter: number;
bufferMax: number;
running: boolean;
constructor(taskArg: Task);
private _run(x);
2016-08-01 14:10:00 +00:00
setBufferMax(bufferMaxArg: number): void;
2016-08-03 12:51:43 +00:00
trigger(x: any): Promise<any>;
2016-08-01 14:10:00 +00:00
}