TimeZoneInfo v0.4.0 TimeZoneInfo.Listener behaviour View Source

A behaviour for TimeZoneInfo listeners.

Link to this section Summary

Callbacks

A callback to listen on the update process.

Link to this section Callbacks

Link to this callback

on_update(step)

View Source
on_update(step :: atom() | {:error, term()}) :: :ok | :undefined

A callback to listen on the update process.

Possible events:

  • :initial initializing data.
  • :check checking whether an update is necessary.
  • :force an update is forced.
  • :download downloads data.
  • :update updating data.
  • `{:error, reason}