ITaskManager Interface
Packages > @fluidframework/runtime-definitions > ITaskManager
Task manager enables app to register and pick tasks.
Signature:
export interface ITaskManager extends IProvideTaskManager, IFluidLoadable, IFluidRouter
Extends: IProvideTaskManager, IFluidLoadable, IFluidRouter
Properties
Property | Type | Description |
---|---|---|
IAgentScheduler | IAgentScheduler | access to IAgentScheduler |
Methods
Method | Description |
---|---|
pick(taskId, worker) | Pick a task that was registered prior. |
register(tasks) | Registers tasks task so that the client can run the task later. |
Events
IAgentScheduler
access to IAgentScheduler
Signature:
readonly IAgentScheduler: IAgentScheduler;
Methods
pick
Pick a task that was registered prior.
Signature:
pick(taskId: string, worker?: boolean): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
taskId | string | |
worker | boolean | Flag that will execute tasks in web worker if connected to a service that supports them. |
Returns:
Promise<void>
register
Registers tasks task so that the client can run the task later.
Signature:
register(...tasks: ITask[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
tasks | ITask[] |
Returns:
void