View Source ProcessHub.Service.Mailbox (ProcessHub v0.2.0-alpha)
The messenger service provides API functions for receiving messages from other processes.
Summary
Functions
Waits for multiple child response messages.
Receives a single child response message.
Receives a single child response message.
Waits for multiple child process startup results.
Waits for multiple child process termination results.
Functions
@spec receive_child_resp( [{node(), [ProcessHub.child_id()]}], term(), function(), term(), pos_integer() ) :: list()
Waits for multiple child response messages.
Receives a single child response message.
Link to this function
receive_response(type, child_id, node, handler, timeout, error \\ nil)
View SourceReceives a single child response message.
@spec receive_start_resp( [{node(), [ProcessHub.child_id()]}], keyword() ) :: {:ok, list()} | {:error, list()}
Waits for multiple child process startup results.
@spec receive_stop_resp( [{node(), [ProcessHub.child_id()]}], keyword() ) :: {:ok, list()} | {:error, list()}
Waits for multiple child process termination results.