fn shards
The shard groups of the cluster.
Example:
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
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/cluster/cluster.oxl:178