@@ -987,10 +987,11 @@ defmodule Task do
987
987
no reply has arrived, or `{:exit, reason}` if the task has already
988
988
exited. Keep in mind that normally a task failure also causes
989
989
the process owning the task to exit. Therefore this function can
990
- return `{:exit, reason}` only if
990
+ return `{:exit, reason}` if at least one of the conditions below apply:
991
991
992
992
* the task process exited with the reason `:normal`
993
- * it isn't linked to the caller
993
+ * the task isn't linked to the caller (the task was started
994
+ with `Task.async_nolink/2` or `Task.Supervisor.async_nolink/3`)
994
995
* the caller is trapping exits
995
996
996
997
A timeout, in milliseconds or `:infinity`, can be given with a default value
@@ -1079,8 +1080,9 @@ defmodule Task do
1079
1080
1080
1081
`Task.yield_many/2` allows developers to spawn multiple tasks
1081
1082
and retrieve the results received in a given timeframe.
1082
- If we combine it with `Task.shutdown/2`, it allows us to gather
1083
- those results and cancel the tasks that have not replied in time.
1083
+ If we combine it with `Task.shutdown/2` (or `Task.ignore/2`),
1084
+ it allows us to gather those results and cancel (or ignore)
1085
+ the tasks that have not replied in time.
1084
1086
1085
1087
Let's see an example.
1086
1088
0 commit comments