Skip to content

Commit 60e6cea

Browse files
committed
Correct task link in docs, closes #13388
1 parent f64ccd0 commit 60e6cea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/elixir/lib/task.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule Task do
4040
as they are *always* sent. If you are not expecting a reply,
4141
consider using `Task.start_link/1` as detailed below.
4242
43-
2. async tasks link the caller and the spawned process. This
43+
2. Async tasks link the caller and the spawned process. This
4444
means that, if the caller crashes, the task will crash
4545
too and vice-versa. This is on purpose: if the process
4646
meant to receive the result no longer exists, there is

lib/elixir/lib/task/supervisor.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ defmodule Task.Supervisor do
152152
Starts a task that can be awaited on.
153153
154154
The `supervisor` must be a reference as defined in `Supervisor`.
155-
The task will still be linked to the caller, see `Task.async/3` for
155+
The task will still be linked to the caller, see `Task.async/1` for
156156
more information and `async_nolink/3` for a non-linked variant.
157157
158158
Raises an error if `supervisor` has reached the maximum number of
@@ -174,7 +174,7 @@ defmodule Task.Supervisor do
174174
Starts a task that can be awaited on.
175175
176176
The `supervisor` must be a reference as defined in `Supervisor`.
177-
The task will still be linked to the caller, see `Task.async/3` for
177+
The task will still be linked to the caller, see `Task.async/1` for
178178
more information and `async_nolink/3` for a non-linked variant.
179179
180180
Raises an error if `supervisor` has reached the maximum number of
@@ -196,7 +196,7 @@ defmodule Task.Supervisor do
196196
Starts a task that can be awaited on.
197197
198198
The `supervisor` must be a reference as defined in `Supervisor`.
199-
The task won't be linked to the caller, see `Task.async/3` for
199+
The task won't be linked to the caller, see `Task.async/1` for
200200
more information.
201201
202202
Raises an error if `supervisor` has reached the maximum number of
@@ -283,7 +283,7 @@ defmodule Task.Supervisor do
283283
Starts a task that can be awaited on.
284284
285285
The `supervisor` must be a reference as defined in `Supervisor`.
286-
The task won't be linked to the caller, see `Task.async/3` for
286+
The task won't be linked to the caller, see `Task.async/1` for
287287
more information.
288288
289289
Raises an error if `supervisor` has reached the maximum number of

0 commit comments

Comments
 (0)