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
| Parameter | Type |
|---|---|
options | EffectDispatcherOptions |
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
| Parameter | Type |
|---|---|
intentSeq | number |
Returns
Promise<EffectDispatchReport>
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
| Parameter | Type |
|---|---|
intentSeq | number |
Returns
Promise<EffectRecoveryReport>