Sync / foldkit-sync/metakit
settleConvergence
function · packages/sync/src/convergence.ts:141
function settleConvergence<
State,
Transitions extends Readonly<Record<string, unknown>>,
Arm extends ArmOf<Transitions>,
>(
machine: Machine<State, Transitions>,
durableArms: ReadonlyArray<Arm>,
options: SettleOptions<NoInfer<Arm['name']>>,
): Promise<Temporal.Evidence>What convergence owes, discharged with the walks given, as evidence for
Temporal.report. A pair that never rebases is a decision checked by its walk, refuted if the
order changed the document. A pair that possible rebases is an obligation
a walk that converged discharges, answering order-matters where the two
orders left different documents on replicas that still agreed. A walk that
broke (the replicas diverged) leaves it open. Each Message's copy is an obligation of
its own.