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

method ClusterApi.find

The live nodes that serve the service name (fully qualified pkg.Service or the type name), §12.3.

Example:

oxl✓ проверяется в CI
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

Параметры

ИмяТип
namestr

Возвращает

List<ClusterMember>

Эффекты

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

Определено в: std/core/node.oxl:497

См. также