Socket
Socket
Sign inDemoInstall

@fluidframework/agent-scheduler

Package Overview
Dependencies
44
Maintainers
2
Versions
502
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fluidframework/agent-scheduler

Built in runtime object for distributing agents across instances of a container


Version published
Weekly downloads
9.2K
increased by9.75%
Maintainers
2
Install size
12.2 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 09 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc