finch/timeout

Wrapper of Elixir’s timeout/0 type.

See https://hexdocs.pm/elixir/typespecs.html#built-in-types for a specification of the type.

Types

A timeout value, either infinite or a specified amount of milliseconds.

pub type Timeout

Functions

pub fn infinity() -> Timeout

Create an infinite timeout.

pub fn milliseconds(ms: Int) -> Timeout

Create a timeout with the given milliseconds.

Search Document