We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f24d45 commit 1b73c49Copy full SHA for 1b73c49
lib/elixir/lib/kernel.ex
@@ -6211,9 +6211,8 @@ defmodule Kernel do
6211
6212
"""
6213
@doc since: "1.17.0"
6214
- @spec to_timeout([component, ...] | timeout() | Duration.t()) :: timeout()
6215
- when component: [{unit, non_neg_integer()}, ...],
6216
- 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
6217
def to_timeout(duration)
6218
6219
def to_timeout(:infinity), do: :infinity
0 commit comments