Skip to main content

Task.TaskManager

Class

Concrete implementation of ITaskManager that tracks and coordinates task completion within the editor.

Index

Example

const taskManager = this.pluginSystem.findInterface(
Task.ITaskManager
) as Task.TaskManager;
taskManager.whenAllCompleted().then(() => {
console.log('TaskManager: all tasks finished');
});

Extends

Properties

interfaceId

static interfaceId: InterfaceId

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

Inherited from

ITaskManager.interfaceId

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

ITaskManager.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

ITaskManager.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

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

ITaskManager.isSame


whenAllCompleted()

whenAllCompleted(): Promise<void>

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

Returns

Promise<void>

Inherited from

ITaskManager.whenAllCompleted