LogicalClock

The interface describing all logical clocks in this library.

Inheritors

Properties

Link copied to clipboard
abstract val lastTime: Timestamp

The current logical timestamp of this clock.

Functions

Link copied to clipboard
abstract suspend fun tick(): Timestamp

Returns a logical timestamp that is greater than the current logical timestamp of this clock and updates the clock's internal state accordingly.

Link copied to clipboard
abstract suspend fun tock(externalTime: Timestamp): Timestamp

Updates the internal state of the clock to reflect the occurrence of an external event with the given logical timestamp.