Skip to documentation
Docs navigation
Docs/createFleet()
MemoGrafter

createFleet()

Create a fleet backed by this core instance.

What it does

Create a fleet backed by this core instance.

When to use it

Use to create fleet orchestration backed by this initialized core and its storage resources.

Signature

TypeScript
createFleet(options?: MemoGrafterFleetOptions): MemoGrafterFleet

Parameters

options? (MemoGrafterFleetOptions) — A typed options object. The applicable fields and defaults are documented below.

Behavior

Returns a MemoGrafterFleet; initialize the fleet before creating workers or using shared memory.

Example

example.ts
const fleet = memo.createFleet({ name: "Support" });