together v0.5.0 Together.Proxy

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

Summary

Functions

start_link(opts \\ [], gen_server_opts \\ [])
start_link(keyword, keyword) :: {:ok, pid}