Dala.PubSub (dala v0.3.2)

Copy Markdown View Source

Convenience module that re-exports the PubSub API.

This module delegates all functions to Dala.Platform.PubSub, providing a shorter and more ergonomic API:

# Instead of:
Dala.Platform.PubSub.subscribe(pubsub, "topic")

# You can write:
Dala.PubSub.subscribe(pubsub, "topic")

See Dala.Platform.PubSub for full documentation.

Summary

Functions

broadcast(pubsub, topic, message)

See Dala.Platform.PubSub.broadcast/3

broadcast_from(pubsub, from, topic, message)

See Dala.Platform.PubSub.broadcast_from/4

child_spec(options)

See Dala.Platform.PubSub.child_spec/1

start_link(options)

See Dala.Platform.PubSub.start_link/1

subscribe(pubsub, topic)

See Dala.Platform.PubSub.subscribe/2

subscriber_count(pubsub, topic)

See Dala.Platform.PubSub.subscriber_count/2

topics(pubsub)

See Dala.Platform.PubSub.topics/1

unsubscribe(pubsub, topic)

See Dala.Platform.PubSub.unsubscribe/2