The duration tuple a timeout measures with fire_after and a retry block
waits with backoff.
It exists so both read the same tuple: {3, :days}, {10, :seconds}.
Summary
Functions
Converts a duration to milliseconds.
Converts a duration to seconds.
Validates a duration tuple, for use as a Spark {:custom, ...} schema type.
Types
@type t() :: {pos_integer(), unit()}
@type unit() :: :seconds | :minutes | :hours | :days
Functions
@spec to_milliseconds(t()) :: pos_integer()
Converts a duration to milliseconds.
@spec to_seconds(t()) :: pos_integer()
Converts a duration to seconds.
Validates a duration tuple, for use as a Spark {:custom, ...} schema type.