We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e126e8 commit bb61b95Copy full SHA for bb61b95
lib/elixir/lib/kernel.ex
@@ -6197,9 +6197,8 @@ defmodule Kernel do
6197
6198
"""
6199
@doc since: "1.17.0"
6200
- @spec to_timeout([component, ...] | timeout() | Duration.t()) :: timeout()
6201
- when component: [{unit, non_neg_integer()}, ...],
6202
- unit: :week | :day | :hour | :minute | :second | :millisecond
+ @spec to_timeout([{unit, non_neg_integer()}] | timeout() | Duration.t()) :: timeout()
+ when unit: :week | :day | :hour | :minute | :second | :millisecond
6203
def to_timeout(duration)
6204
6205
def to_timeout(:infinity), do: :infinity
0 commit comments