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 9290fab commit 33e9f12Copy full SHA for 33e9f12
lib/http/promise.ex
@@ -22,7 +22,8 @@ defmodule HTTP.Promise do
22
- `{:error, reason}` if the request fails or is aborted.
23
- `{:error, :timeout}` if the timeout is reached.
24
"""
25
- @spec await(t(), timeout :: non_neg_integer() | :infinity) :: HTTP.Response.t() | {:error, term()}
+ @spec await(t(), timeout :: non_neg_integer() | :infinity) ::
26
+ HTTP.Response.t() | {:error, term()}
27
def await(%__MODULE__{task: task}, timeout \\ :infinity) do
28
Task.await(task, timeout)
29
end
0 commit comments