Invokes the following functions with a GenServer registered via a server ID:
GenServer.call/3
GenServer.cast/2
GenServer.stop/3
Will wait a bit if the GenServer is not yet registered on restarts. Note this is an assumption as the GenServer may have never started.
If available in Hex, the package can be installed
by adding gen_server_proxy
to your list of dependencies in mix.exs
:
def deps do
[
{:gen_server_proxy, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/gen_server_proxy.