fn observe
Merges a stamp received from outside the cluster channel; false when it is more than the allowed drift ahead.
Example:
use std.cluster
fn main() io {
let h = cluster.now()
print(cluster.observe(h))
}Вывод
true
pub(api) fn observe(h: Hlc) -> boolС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
h | Hlc |
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/cluster/cluster.oxl:161