Reference Source
public class | source

Task

Direct Subclass:

CommandTask, ExecutableTask

Constructor Summary

Public Constructor
public

constructor(arg_settings: object): nothing

Create a Task instance.

Member Summary

Public Members
public
public
public

name: *

public

type: *

public

version: *

Private Members
private
private
private

Method Summary

Public Methods
public

perform(args: any): nothing

Run task.

Private Methods
private

_run(args: any): Promise

Run task.

Public Constructors

public constructor(arg_settings: object): nothing source

Create a Task instance.

Params:

NameTypeAttributeDescription
arg_settings object

task settings.

Return:

nothing

Public Members

public description: * source

public is_task: boolean source

public name: * source

public type: * source

public version: * source

Private Members

private _failure_cb: * source

private _process_cb: * source

private _success_cb: * source

Public Methods

public perform(args: any): nothing source

Run task.

Params:

NameTypeAttributeDescription
args any

variadic arguments.

Return:

nothing

Private Methods

private _run(args: any): Promise source

Run task.

Params:

NameTypeAttributeDescription
args any

variadic arguments.

Return:

Promise

Promise of task result.