Together.Proxy (together v0.5.1)

Proxy is here to receive all the Process.send_after messages

It offloads the message handling from worker, and makes sure that if the worker dies, the respawned worker will still get the messages, since Proxy calls Worker by name instead of pid

If the Proxy dies, it will lose all the messages, but the Proxy is less likely to die than Worker, because it has basically no logic and no interaction with outside Together

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

start_link(opts \\ [], gen_server_opts \\ [])

@spec start_link(keyword(), keyword()) :: {:ok, pid()}