OxL Reference

fn observe

Merges a stamp received from outside the cluster channel; false when it is more than the allowed drift ahead.

Example:

oxl✓ checked in CI
use std.cluster

fn main() io {
  let h = cluster.now()
  print(cluster.observe(h))
}
Output
true
pub(api) fn observe(h: Hlc) -> bool

Since. 1.0.0-beta

Parameters

NameType
hHlc

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/cluster/cluster.oxl:161

See also