UNPKG

@actyx/sdk

Version:
22 lines 991 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventOrder = void 0; /** Which clock to compare events by. Defaults to `Lamport`. * @beta */ var EventOrder; (function (EventOrder) { /** * Comparison according to Lamport clock, which is a logical clock, * meaning it preserves causal order even when wall clocks on devices are off. * * On the flip-side, for any two events where neither is a cause of the other, * lamport-order may be different from timestamp-order, if the devices creating the events * where disconnected from each other at the time. */ EventOrder["Lamport"] = "lamport"; /** * Comparison according to wall clock time logged at event creation. * If the system clock on a device is wrong, the event's timestamp will also be wrong. */ EventOrder["Timestamp"] = "timestamp"; })(EventOrder = exports.EventOrder || (exports.EventOrder = {})); //# sourceMappingURL=event-fns.js.map