OxL Справочник OxL
РусскийEnglish

fn shards

The shard groups of the cluster.

Example:

oxl✓ проверяется в CI
use std.cluster

fn main() io {
  print(cluster.shards().len())
}
Вывод
0
pub(api) fn shards() -> List<ShardInfo>

Сложность. O(s) in the number of shard groups.

С версии. 1.0.0-beta

Возвращает

List<ShardInfo>

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/cluster/cluster.oxl:178

См. также