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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部