Skip to content

Commit f032dce

Browse files
giftigjvican
authored andcommitted
Grammar fix (#1050)
Change "amount" to "number" in cases where amount is incorrect. One instance actually used number correctly in the next sentence :P Amount refers to a continuous value as opposed to a discrete count, so number of processors / threads, amount of water or code.
1 parent c4edc23 commit f032dce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_overviews/core/futures.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ although this should only be done in rare cases.
7474

7575
`ExecutionContext.global` is an `ExecutionContext` backed by a [ForkJoinPool](http://docs.oracle.com/javase/tutorial/essential/concurrency/forkjoin.html).
7676
It should be sufficient for most situations but requires some care.
77-
A `ForkJoinPool` manages a limited amount of threads (the maximum amount of threads being referred to as *parallelism level*).
77+
A `ForkJoinPool` manages a limited number of threads (the maximum number of threads being referred to as *parallelism level*).
7878
The number of concurrently blocking computations can exceed the parallelism level
7979
only if each blocking call is wrapped inside a `blocking` call (more on that below).
8080
Otherwise, there is a risk that the thread pool in the global execution context is starved,
8181
and no computation can proceed.
8282

83-
By default the `ExecutionContext.global` sets the parallelism level of its underlying fork-join pool to the amount of available processors
83+
By default the `ExecutionContext.global` sets the parallelism level of its underlying fork-join pool to the number of available processors
8484
([Runtime.availableProcessors](http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#availableProcessors%28%29)).
8585
This configuration can be overridden by setting one (or more) of the following VM attributes:
8686

@@ -90,7 +90,7 @@ This configuration can be overridden by setting one (or more) of the following V
9090

9191
The parallelism level will be set to `numThreads` as long as it remains within `[minThreads; maxThreads]`.
9292

93-
As stated above the `ForkJoinPool` can increase the amount of threads beyond its `parallelismLevel` in the presence of blocking computation.
93+
As stated above the `ForkJoinPool` can increase the number of threads beyond its `parallelismLevel` in the presence of blocking computation.
9494
As explained in the `ForkJoinPool` API, this is only possible if the pool is explicitly notified:
9595

9696
import scala.concurrent.Future

0 commit comments

Comments
 (0)