Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Task

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

  • Disposable

Index

Constructors

constructor

Properties

Readonly exitEmitter

exitEmitter: Emitter<TaskExitedEvent>

Protected Readonly logger

logger: ILogger

Protected Readonly options

options: TaskOptions

Readonly outputEmitter

outputEmitter: Emitter<TaskOutputEvent>

Protected taskId

taskId: number

Protected Readonly taskManager

taskManager: TaskManager

Protected Readonly toDispose

toDispose: DisposableCollection = ...

Accessors

context

  • get context(): undefined | string

id

  • get id(): number

label

  • get label(): string

onExit

onOutput

Methods

dispose

  • dispose(): void

Protected fireOutputLine

Protected fireTaskExited

Abstract getRuntimeInfo

  • 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.

Abstract kill

  • kill(): Promise<void>