File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ defmodule Task do
297
297
are emitted in the same order as the original `enumerable`.
298
298
299
299
The level of concurrency can be controlled via the `:max_concurrency`
300
- option and defaults to `System.schedulers_online/1 `. The timeout
300
+ option and defaults to `System.schedulers_online/0 `. The timeout
301
301
can also be given as option and defaults to 5000 and it defaults to
302
302
the maximum amount of time to wait without a task reply.
303
303
@@ -309,9 +309,10 @@ defmodule Task do
309
309
## Options
310
310
311
311
* `:max_concurrency` - sets the maximum number of tasks to run
312
- at the same time. Defaults to `System.schedulers_online/1 `.
312
+ at the same time. Defaults to `System.schedulers_online/0 `.
313
313
* `:timeout` - the maximum amount of time to wait without
314
314
receiving a task reply (across all running tasks).
315
+ Defaults to `5000`.
315
316
316
317
## Example
317
318
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ defmodule Task.Supervisor do
122
122
are emitted in the same order as the original `enumerable`.
123
123
124
124
The level of concurrency can be controlled via the `:max_concurrency`
125
- option and defaults to `System.schedulers_online/1 `. The timeout
125
+ option and defaults to `System.schedulers_online/0 `. The timeout
126
126
can also be given as option and defaults to 5000 and it defaults to
127
127
the maximum amount of time to wait without a task reply.
128
128
@@ -133,9 +133,10 @@ defmodule Task.Supervisor do
133
133
## Options
134
134
135
135
* `:max_concurrency` - sets the maximum number of tasks to run
136
- at the same time. Defaults to `System.schedulers_online/1 `.
136
+ at the same time. Defaults to `System.schedulers_online/0 `.
137
137
* `:timeout` - the maximum amount of time to wait without
138
138
receiving a task reply (across all running tasks).
139
+ Defaults to `5000`.
139
140
140
141
## Examples
141
142
You can’t perform that action at this time.
0 commit comments