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

29 lines
939 B
TypeScript
Raw Normal View History

2017-02-15 21:52:29 +00:00
import plugins = require('./taskbuffer.plugins');
import { Task, ITaskFunction } from './taskbuffer.classes.task';
2016-08-01 11:17:15 +00:00
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;
running: boolean;
constructor(taskArg: Task);
2016-08-03 12:51:43 +00:00
trigger(x: any): Promise<any>;
2017-06-09 21:33:41 +00:00
private _run(x);
2016-08-01 14:10:00 +00:00
}