Rulvar API reference / @rulvar/effects / EffectReconciler
Class: EffectReconciler
Defined in: packages/effects/src/reconciler.ts:51
Constructors
Constructor
new EffectReconciler(options): EffectReconciler;Defined in: packages/effects/src/reconciler.ts:56
Parameters
| Parameter | Type |
|---|---|
options | EffectReconcilerOptions |
Returns
EffectReconciler
Methods
reconcileRestoration()
reconcileRestoration(options?): Promise<RestorationReport>;Defined in: packages/effects/src/reconciler.ts:234
The post-restore reconciliation (RFC section 4.5, item 3; kill 25). Requires the current epoch to be a restoration epoch awaiting release. With enumerate, every provider effect whose logical key has no consumed intent anywhere in the journal quarantines standalone by name (what could NOT be reconstructed), and open machines re-enter recovery through the ordinary sweep. Without authoritative enumeration the whole affected range quarantines as one named record and automatic recovery is forbidden. Either way the sweep runs, the completion decision appends, and attempt dispatch re-enables for the epoch.
Parameters
| Parameter | Type |
|---|---|
options? | { enumerate?: () => Promise<{ logicalKey: string; receipt?: EffectReceiptObservation; }[]>; } |
options.enumerate? | () => Promise<{ logicalKey: string; receipt?: EffectReceiptObservation; }[]> |
Returns
Promise<RestorationReport>
sweep()
sweep(options?): Promise<EffectSweepReport>;Defined in: packages/effects/src/reconciler.ts:170
Parameters
| Parameter | Type |
|---|---|
options | { recover?: boolean; } |
options.recover? | boolean |
Returns
Promise<EffectSweepReport>