Task.TaskManager
ClassConcrete implementation of ITaskManager that tracks and coordinates task completion within the editor.
Index
Properties
Methods
Example
const taskManager = this.pluginSystem.findInterface(
Task.ITaskManager
) as Task.TaskManager;
taskManager.whenAllCompleted().then(() => {
console.log('TaskManager: all tasks finished');
});
Extends
Properties
interfaceId
staticinterfaceId:InterfaceId
Unique identifier for the ITaskManager interface, used for component lookup.
Inherited from
Methods
getTypeName()
staticgetTypeName():string
Returns the type name of this class.
Returns
string
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object is of the specified type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object refers to the same instance as the given object.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean
Inherited from
whenAllCompleted()
whenAllCompleted():
Promise<void>
Returns a promise that resolves when all pending tasks have completed.
Returns
Promise<void>