@proto-kit/sequencer • Docs


Documentation / @proto-kit/sequencer / FlowCreator

Class: FlowCreator

Constructors

new FlowCreator()

new FlowCreator(queueImpl, sequencerIdProvider): FlowCreator

Parameters

• queueImpl: TaskQueue

• sequencerIdProvider: SequencerIdProvider

Returns

FlowCreator

Defined in

packages/sequencer/src/worker/flow/Flow.ts:193

Methods

createFlow()

createFlow<State>(flowId, state): Flow<State>

Type Parameters

• State

Parameters

• flowId: string

• state: State

Returns

Flow<State>

Defined in

packages/sequencer/src/worker/flow/Flow.ts:198