Phoenix.PubSub.GC
Phoenix.PubSub.GC
A garbage collector process that cleans up the table used by Phoenix.PubSub.Local
.
Summary
Functions
- down(gc_server, pid)
-
Force table clean up because the given pid is down asynchronously
- start_link(server_name, local_name)
-
Starts the server
Functions
down(gc_server, pid)
Force table clean up because the given pid is down asynchronously.
-
gc_server
- The registered server name or pid -
pid
- The subscriber pid
Examples
iex> down(:gc_server, self)
:ok
start_link(server_name, local_name)
Starts the server.
-
server_name
- The name to register the server under -
table_name
- The name of the local table
© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix_pubsub/Phoenix.PubSub.GC.html