included ora and introduced taskspace.
This commit is contained in:
@ -4,6 +4,7 @@ import * as helpers from "./taskbuffer.classes.helpers"
|
||||
|
||||
|
||||
export class Task {
|
||||
name:string;
|
||||
task:any;
|
||||
running:boolean;
|
||||
idle:boolean;
|
||||
|
@ -5,7 +5,7 @@ import helpers = require("./taskbuffer.classes.helpers");
|
||||
|
||||
export class Taskchain extends Task {
|
||||
taskArray:Task[];
|
||||
|
||||
private _oraObject;
|
||||
constructor(taskArrayArg:Task[]|Task){
|
||||
super({
|
||||
taskFunction: () => { // this is the function that gets executed when TaskChain is triggered
|
||||
@ -21,6 +21,7 @@ export class Taskchain extends Task {
|
||||
startDeferred.resolve();
|
||||
}
|
||||
});
|
||||
this._oraObject = plugins.beautylog.ora("Taskchain idle","blue");
|
||||
}
|
||||
addTask(taskArg:Task){
|
||||
this.taskArray.push(taskArg);
|
||||
|
0
ts/taskbuffer.classes.taskspace.ts
Normal file
0
ts/taskbuffer.classes.taskspace.ts
Normal file
@ -1,6 +1,3 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = {
|
||||
beautylog: require("beautylog"),
|
||||
Q: require("q")
|
||||
};
|
||||
export = plugins;
|
||||
export import beautylog = require("beautylog");
|
||||
export let Q = require("q");
|
||||
|
Reference in New Issue
Block a user