boltun v1.0.0 Boltun.CallbacksAgent

Stores the callback to be executed by a listener. The functions defined here should only be invoked by a listener, since it also takes care of sending the LISTEN/UNLISTEN commands to the connection.

Summary

Functions

Adds a callback for the given channel

Returns all callbacks for the given channel

Returns the list of channels to monitor

Removes all callbacks for the given channel

Starts the callback agent

Functions

add_to_channel(agent, channel, value)

Adds a callback for the given channel

callbacks_for_channel(agent, channel)

Returns all callbacks for the given channel

channels(agent)

Returns the list of channels to monitor

remove_channel(agent, channel)

Removes all callbacks for the given channel

start_link(initial_callbacks, opts)

Starts the callback agent