View Source TimeZoneInfo.Listener behaviour (TimeZoneInfo v0.7.2)

A behaviour for TimeZoneInfo listeners.

Summary

Callbacks

A callback to listen on the update process.

Callbacks

@callback 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}