View Source ProcessHub.Service.Mailbox (ProcessHub v0.3.2-alpha)
The messenger service provides API functions for receiving messages from other processes.
Summary
Functions
Waits for multiple child process startup results.
Waits for multiple child process termination results.
Waits for multiple child response messages.
Receives a single child response message.
Receives a single child response message.
Functions
@spec collect_start_results( ProcessHub.hub_id(), keyword() ) :: {:ok, list()} | {:error, {list(), list()}}
Waits for multiple child process startup results.
@spec collect_stop_results( ProcessHub.hub_id(), keyword() ) :: {:ok, list()} | {:error, {list(), list()}}
Waits for multiple child process termination results.
@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.