Packages

A minimal wrapper around Mint providing pooling functionality

Current section

Files

Jump to
freshness lib freshness utils.ex
Raw

lib/freshness/utils.ex

defmodule Utils do
@spec expiration(integer) :: Utils.Expiration.t()
defdelegate expiration(timeout), to: Utils.Expiration, as: :new
@spec expired?(Utils.Expiration.t()) :: boolean()
defdelegate expired?(expiration), to: Utils.Expiration
end