Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Task Abstract

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

Hierarchy

Implements

Index

Constructors

Properties

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

Accessors

  • get context(): undefined | string
  • get id(): number
  • get label(): string

Methods

  • dispose(): void
  • getRuntimeInfo(): MaybePromise<TaskInfo>
  • 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.

  • kill(): Promise<void>