Task.ITaskManager
ClassInterface for a plugin component that manages pending tasks and exposes a promise that resolves when all tasks complete.
Index
Properties
Methods
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
staticinterfaceId:InterfaceId
Unique identifier for the ITaskManager interface, used for component lookup.
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>