method ClusterApi.find
The live nodes that serve the service name (fully qualified pkg.Service or the type name), §12.3.
Example:
fn main() io {
print("{cluster.find("Bank").len()}")
}Вывод
0
pub(api) fn find(name: str) -> List<ClusterMember>Сложность. O(n) in the number of nodes.
С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
name | str |
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/node.oxl:497