data ClusterIds
cluster.ids (§12.6): unique ids, increasing on each node.
Example:
fn main() io {
let a = cluster.ids.next()
let b = cluster.ids.next()
print("{a != b}")
}Вывод
true
@derive(Copy)
pub(api) data ClusterIdsПотокобезопасность. safe from any task.
С версии. 1.0.0-beta
Методы
next | () -> i64A cluster-wide unique id |
Определено в: std/core/node.oxl:653