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()}")
}Output
0
pub(api) fn find(name: str) -> List<ClusterMember>Complexity. O(n) in the number of nodes.
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
name | str |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/node.oxl:497