OxL Reference

fn shards

The shard groups of the cluster.

Example:

oxl✓ checked in CI
use std.cluster

fn main() io {
  print(cluster.shards().len())
}
Output
0
pub(api) fn shards() -> List<ShardInfo>

Complexity. O(s) in the number of shard groups.

Since. 1.0.0-beta

Returns

List<ShardInfo>

Effects

none declared (pure unless the body says otherwise)

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

See also