Skip to content

Latest commit

 

History

History
47 lines (25 loc) · 1.03 KB

onion_pubsub.md

File metadata and controls

47 lines (25 loc) · 1.03 KB

Module onion_pubsub

Pub/Sub API.

Authors: Alexander Færøy ([email protected]).

Function Index

send/2Send a message to a given topic.
subscribe/1Subscribe to a given topic.

Function Details

send/2


send(Topic, Message) -> {pid(), Topic, Message}
  • Topic = term()
  • Message = term()

Send a message to a given topic.

subscribe/1


subscribe(Topic) -> true
  • Topic = term()

Subscribe to a given topic.