Channel
Models a communication channel between two Components.
With the channel the components can communicate with each other via the sendToComponent and receiveFromComponent methods. The channel is set up by the channelSetup method and can change its operation mode with the setMode method. The communication Mode defines if the communication should occur locally or remotely.
Properties
Functions
Link copied to clipboard
abstract suspend fun channelSetup(source: ComponentRef, destination: ComponentRef): Either<CommunicatorError, Unit>
Sets up the communication between the given source and destination components.
Link copied to clipboard
Asynchronously initializes the entity. Can Either succeed or fail with an Error.
Link copied to clipboard
Receives messages from the component.
Link copied to clipboard
Sends a message to the component.
Link copied to clipboard
Configures the module of the dependency injection module that the resource will use.