//// Wrapper of Elixir's `timeout/0` type. //// //// See [https://hexdocs.pm/elixir/typespecs.html#built-in-types](https://hexdocs.pm/elixir/typespecs.html#built-in-types) //// for a specification of the type. /// A timeout value, either infinite or a specified amount of milliseconds. pub type Timeout /// Create an infinite timeout. @external(erlang, "Elixir.FinchGleam.Timeout", "infinity") pub fn infinity() -> Timeout /// Create a timeout with the given milliseconds. @external(erlang, "Elixir.FinchGleam.Timeout", "milliseconds") pub fn milliseconds(ms: Int) -> Timeout