SimplestPubSub (simplest_pub_sub v0.1.0)

Sub for events pub.

Link to this section Summary

Functions

Events are sent as messages to the subscribed processes.

Subscribe the current process to receive events

Link to this section Functions

Link to this function

publish(topic, event)

@spec publish(any(), any()) :: :ok

Events are sent as messages to the subscribed processes.

Link to this function

subscribe(topic)

@spec subscribe(any()) :: :ok

Subscribe the current process to receive events