BoundedCounterTransferCoordinator
constructor(coordSeam: Seam, state: StateFlow<BoundedCounter>, self: ReplicaId, applyTransfer: (Patch<BoundedCounter>) -> Unit, scope: CoroutineScope, config: BoundedCounterTransferConfig = BoundedCounterTransferConfig(), equalizerConfig: BoundedCounterEqualizerConfig? = null)
Parameters
coordSeam
a us.tractat.kuilt.core.MuxSeam channel — must be pre-wired by the caller.
state
live BoundedCounter state (updated whenever Quilter applies a patch).
self
this replica's ReplicaId.
applyTransfer
called by the donor side with a transfer Patch; the caller is expected to invoke Quilter.apply so the delta propagates to peers.
scope
the CoroutineScope for background coroutines. The periodic equalizer loop uses delay on this scope's dispatcher — inject a test dispatcher for virtual-time control.
config
reactive-borrow tuning parameters.
equalizerConfig
proactive equalizer parameters, or null to disable the equalizer.