Dotcom.ServiceDateRollover (MBTA Website v0.0.1)

View Source

Notifies via PubSub when the service date advances to the next service date

// subscribe to updates _ = Dotcom.ServiceDateRollover.subscribe()

// handle the update def handle_info({:service_date_rollover, new_service_date}, socket)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

ms_to_next_rollover()

start_link(opts \\ [])

subscribe()

topic_name()