method ClusterIds.next
A cluster-wide unique id: the number of this node in the high bits, a counter in the low ones (0 for the node part outside a cluster).
Example:
fn main() io {
let a = cluster.ids.next()
let b = cluster.ids.next()
print("{b > a}")
}Output
true
pub(api) fn next() -> i64Complexity. O(1).
Since. 1.0.0-beta
Returns
i64
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/node.oxl:671