Behaviours: gen_server, poolboy_worker.
This module defines the kyu_worker behaviour.
Required callback functions: handle_message/2.
Optional callback functions: init/1, handle_info/2, terminate/2.
get_all/1 | Returns the worker pids. |
send/2 | Sends info to one of the worker processes (in round-robin fashion). |
send_each/2 | Sends info to all of the worker processes. |
get_all(Name::kyu_consumer:name()) -> [pid()]
Returns the worker pids.
send(Name::kyu_consumer:name(), Info::term()) -> term()
Sends info to one of the worker processes (in round-robin fashion).
send_each(Name::kyu_consumer:name(), Info::term()) -> list()
Sends info to all of the worker processes.
Generated by EDoc