Skip to main content

Task.ITaskManager

Class

Interface for a plugin component that manages pending tasks and exposes a promise that resolves when all tasks complete.

Index

Example

const taskManager = this.pluginSystem.findInterface(
Task.ITaskManager
) as Task.ITaskManager;
taskManager.whenAllCompleted().then(() => {
console.log('All pending tasks completed');
});
console.log(`ITaskManager.interfaceId: ${Task.ITaskManager.interfaceId}`);

Extends

Extended by

Properties

interfaceId

static interfaceId: InterfaceId

Unique identifier for the ITaskManager interface, used for component lookup.

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

IPluginComponent.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

IPluginComponent.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

IPluginComponent.isOfType


isSame()

isSame(other): boolean

Returns true if this object refers to the same instance as the given object.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

IPluginComponent.isSame


whenAllCompleted()

whenAllCompleted(): Promise<void>

Returns a promise that resolves when all pending tasks have completed.

Returns

Promise<void>