GroupOps
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Members list
Value members
Abstract methods
List of clients IDs that are inside the group
List of clients IDs that are inside the group
Attributes
- Returns
-
A list of clients that are inside the group
Executes a function on a client if it exists in the group
Executes a function on a client if it exists in the group
Type parameters
- R
-
The expected return value type
Value parameters
- ex
-
The function that is executed if the client exists
- id
-
The client identifier
Attributes
- Returns
-
An Either object with an error occurred or the result of the function
Execute an action on the output reference for a client
Execute an action on the output reference for a client
Value parameters
- action
-
The function that must be executed for each client
Attributes
Execute an action on a client if it belongs to the group and a specific condition is met
Execute an action on a client if it belongs to the group and a specific condition is met
Type parameters
- R
-
The expected return value type
Value parameters
- condition
-
A function that takes a client as input and return a Boolean
- id
-
The client identifier
- ko
-
The function that is executed if the condition returns false
- ok
-
The function that is executed if the condition returns true
Attributes
- Returns
-
An Either object with an error occurred or the result of the function
Return a client reference that is currently inside the group
Return a client reference that is currently inside the group
Value parameters
- clientID
-
the id of the client
Attributes
- Returns
-
An Either object indicating an error for the retrieval or the actual reference
Check if a ClientID is already present inside the group
Check if a ClientID is already present inside the group
Value parameters
- clientID
-
The ClientID to search
Attributes
Update a client inside the group
Update a client inside the group
Value parameters
- clientID
-
the id of the client
- update
-
the update function for the