time_zone_info v0.3.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 steps:

  • :initial initializing data.
  • :check checking whether an update is necessary.
  • :download downloads data.
  • :update updating data.