View Source XGPS.Broadcaster (Elixir.XGPS v0.5.0)

Heavily inspired (almost a copy) from the GenEvent-replacement example from GenStage-repo at: https://github.com/elixir-lang/gen_stage

Link to this section Summary

Functions

Sends an event async.

Callback implementation for GenStage.handle_cancel/3.

Callback implementation for GenStage.handle_cast/2.

Callback implementation for GenStage.init/1.

Starts the broadcaster.

Link to this section Functions

Sends an event async.

Link to this function

handle_cancel(_, _, arg)

View Source

Callback implementation for GenStage.handle_cancel/3.

Callback implementation for GenStage.handle_cast/2.

Link to this function

handle_demand(incoming_demand, arg)

View Source

Callback implementation for GenStage.handle_demand/2.

Link to this function

handle_subscribe(_, _, _, arg)

View Source

Callback implementation for GenStage.handle_subscribe/4.

Callback implementation for GenStage.init/1.

Starts the broadcaster.