@fluidframework/agent-scheduler
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

@fluidframework/agent-scheduler

AgentScheduler

The AgentScheduler is a data object that can be used to assign tasks to unique clients.

Creation

To create an AgentScheduler as a child instance of your data object, add the factory to your registry and call the static createChildInstance function on the factory. You can then retrieve and store its handle to access it later:

// In your Data Object
protected async initializingFirstTime() {
    const agentScheduler = await AgentSchedulerFactory.createChildInstance(this.context);
    this.root.set("agentScheduler", agentScheduler.handle);
}

// When creating your DataObjectFactory
export const MyDataObjectFactory = new DataObjectFactory(
    "my-data-object",
    MyDataObject,
    [],
    {},
    new Map([
        AgentSchedulerFactory.registryEntry,
    ]),
);

See GitHub for more details on the Fluid Framework and packages within.

/@fluidframework/agent-scheduler/

    Package Sidebar

    Install

    npm i @fluidframework/agent-scheduler

    Weekly Downloads

    4,806

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    166 kB

    Total Files

    42

    Last publish

    Collaborators

    • ms-fluid-bot
    • curtisman