OxL Reference

fn self

The id of this node.

Example:

oxl✓ checked in CI
use std.cluster

fn main() io {
  print(cluster.self().name.len() > 0)
}
Output
true
pub(api) fn self() -> NodeId

Thread safety. safe to call from any task.

Since. 1.0.0-beta

Returns

NodeId

Effects

none declared (pure unless the body says otherwise)

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

See also