abc v0.1.0 ABC

Link to this section Summary

Functions

Broadcast a message to all connected channels and streams

Starts a broadcaster. This broadcaster will broadcast all messages sent to it via ABC.broadcast

Starts a channel. The channel needs a name, and an already started broadcaster

Stream from a broadcaster. This has the same function signature of GenStage.stream

Link to this section Functions

Link to this function broadcast(broadcaster_name, event, timeout \\ 5000)

Broadcast a message to all connected channels and streams.

Link to this function start_broadcaster(name)

Starts a broadcaster. This broadcaster will broadcast all messages sent to it via ABC.broadcast

Each channel that you setup will receive the messages - provided you have something to consume the items from the Channel

Link to this function start_channel(spec)

Starts a channel. The channel needs a name, and an already started broadcaster.

Each channel requires that you setup workers that subscribe to them before they will get any messages.

Link to this function stream(subscriptions, options \\ [])

Stream from a broadcaster. This has the same function signature of GenStage.stream.

You’ll need to use ABC.stream so that we can reference the broadcaster correctly via swarm.