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

34 lines
1.1 KiB
TypeScript
Raw Normal View History

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";
2016-08-03 12:51:43 +00:00
import { Promise } from "q";
export { Promise } from "q";
2016-08-01 11:17:15 +00:00
export declare let emptyTaskFunction: ITaskFunction;
export declare let isTask: (taskArg: any) => 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[];
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<{}>;
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
}