File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -345,9 +345,8 @@ defmodule Task do
345345 terminates all tasks.
346346
347347 When streamed, each task will emit `{:ok, value}` upon successful
348- completion or `{:exit, reason}` if the caller is trapping exits,
349- where `element` is the stream element. Results are emitted in the
350- same order as the original `enumerable`.
348+ completion or `{:exit, reason}` if the caller is trapping exits.
349+ Results are emitted in the same order as the original `enumerable`.
351350
352351 The level of concurrency can be controlled via the `:max_concurrency`
353352 option and defaults to `System.schedulers_online/0`. A timeout
@@ -373,8 +372,7 @@ defmodule Task do
373372 values are:
374373 * `:exit` (default) - the process that spawned the tasks exits.
375374 * `:kill_task` - the task that timed out is killed. The value
376- emitted for that task is `{:exit, :timeout, element}`, where
377- `element` is the element it timed out on.
375+ emitted for that task is `{:exit, :timeout}`.
378376
379377 ## Example
380378
Original file line number Diff line number Diff line change @@ -153,9 +153,8 @@ defmodule Task.Supervisor do
153153 linked to the current process, similarly to `async/4`.
154154
155155 When streamed, each task will emit `{:ok, value}` upon successful
156- completion or `{:exit, reason, element}` if the caller is trapping
157- exits, where `element` is the stream element. Results are emitted
158- in the same order as the original `enumerable`.
156+ completion or `{:exit, reason}` if the caller is trapping exits.
157+ Results are emitted in the same order as the original `enumerable`.
159158
160159 The level of concurrency can be controlled via the `:max_concurrency`
161160 option and defaults to `System.schedulers_online/0`. A timeout
@@ -185,8 +184,7 @@ defmodule Task.Supervisor do
185184 values are:
186185 * `:exit` (default) - the process that spawned the tasks exits.
187186 * `:kill_task` - the task that timed out is killed. The value
188- emitted for that task is `{:exit, :timeout, element}`, where
189- `element` is the element it timed out on.
187+ emitted for that task is `{:exit, :timeout}`.
190188
191189 ## Examples
192190
You can’t perform that action at this time.
0 commit comments