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

32 lines
1.0 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";
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<{}>;
informOfCycle(): void;
}
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;
trigger(x: any): PromiseLike<any>;
2016-08-01 14:10:00 +00:00
}