fn nodes
All nodes the membership knows, this one included, with their state ("alive", "suspect", "dead", "left").
Example:
use std.cluster
fn main() io {
for m in cluster.nodes() {
print("{m.state} {m.isSelf}")
}
}Output
alive true
pub(api) fn nodes() -> List<ClusterMember>Complexity. O(n) in the number of nodes.
Since. 1.0.0-beta
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/cluster/cluster.oxl:70