Phoenix.PubSub.GC

A garbage collector process that cleans up the table used by Phoenix.PubSub.Local.

Summary

Functions

Force table clean up because the given pid is down asynchronously

Removes subscriber’s subscription for topic

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
unsubscribe(pid, topic, topics_table, pids_table)

Removes subscriber’s subscription for topic