Class TaskAbstract

A Task represents the execution state of a TaskConfiguration. Implementing classes have to call the Task#fireOutputLine function whenever a new output occurs during the execution.

Hierarchy (view full)

Implements

Constructors

Properties

exitEmitter: Emitter<TaskExitedEvent>
logger: ILogger
options: TaskOptions
outputEmitter: Emitter<TaskOutputEvent>
taskId: number
taskManager: ManagedTaskManager<Task>
toDispose: DisposableCollection = ...

Accessors

Methods

  • Retrieves the runtime information about this task. The runtime information computation may happen asynchronous.

    Returns MaybePromise<TaskInfo>

    (a promise of) the runtime information as TaskInfo.

  • Terminate this task.

    Returns Promise<void>

    a promise that resolves once the task has been properly terminated.