Poolder.Dispatcher behaviour (Poolder v0.1.10)

View Source

Summary

Callbacks

broadcast(group, msg)

@callback broadcast(group :: atom(), msg :: any()) :: :ok

call(pid, msg, timeout)

@callback call(pid :: pid(), msg :: any(), timeout :: integer()) :: any()

call(group, pid, msg, timeout)

@callback call(group :: atom(), pid :: pid(), msg :: any(), timeout :: integer()) :: any()

cast(pid, msg)

@callback cast(pid :: pid(), msg :: any()) :: :ok

cast(group, pid, msg)

@callback cast(group :: atom(), pid :: pid(), msg :: any()) :: :ok

count(group)

@callback count(group :: atom()) :: non_neg_integer()

count_all()

@callback count_all() :: non_neg_integer()

list(group)

@callback list(group :: atom()) :: [pid()]

list_all()

@callback list_all() :: [{pid(), atom()}]