Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/effects / EffectDispatcher

Class: EffectDispatcher

Defined in: packages/effects/src/dispatcher.ts:74

Constructors

Constructor

ts
new EffectDispatcher(options): EffectDispatcher;

Defined in: packages/effects/src/dispatcher.ts:82

Parameters

ParameterType
optionsEffectDispatcherOptions

Returns

EffectDispatcher

Methods

dispatch()

ts
dispatch(intentSeq): Promise<EffectDispatchReport>;

Defined in: packages/effects/src/dispatcher.ts:112

The normal path: open the attempt (the writer's pre-attempt re-fold cancels or refuses per RFC section 4.7), send through the seam, classify the outcome, and confirm on a verified receipt.

Parameters

ParameterType
intentSeqnumber

Returns

Promise&lt;EffectDispatchReport&gt;


recover()

ts
recover(intentSeq): Promise<EffectRecoveryReport>;

Defined in: packages/effects/src/dispatcher.ts:288

The crash-window recovery (RFC section 8): derived from what the journal proves and what the capability row licenses. Never a blind retry; never a provider contact on an already-closed machine.

Parameters

ParameterType
intentSeqnumber

Returns

Promise&lt;EffectRecoveryReport&gt;