Skip to content

Commit

Permalink
Fixed language around "serial"
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Barrett committed Feb 11, 2014
1 parent 0484ad8 commit 8ebc347
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ This is equivalent to running each task in its own `clojure.core/future`.
```

You can also pass the keyword `:serial` as a threadpool. In that case, the
function will be run eagerly in serial, not in parallel, so the parallel
function will not return until all the work is done. We find this is helpful
for testing and benchmarking. (See also about `*parallel*` below.)
function will be run eagerly in series in the calling thread, not in parallel,
so the parallel function will not return until all the work is done. We find
this is helpful for testing and benchmarking. (See also about `*parallel*`
below.)

```clojure
;; Use no parallelism at all; blocks until all work is complete.
Expand Down Expand Up @@ -180,7 +181,7 @@ and their priority.
## How can I disable threading?

We have found that benchmarking and some other tests are most easily done in
serial. You can do that in one of two ways.
series. You can do that in one of two ways.

First, you can just pass the keyword `:serial` to a parallel function.

Expand All @@ -194,7 +195,7 @@ like so:
```clojure
(binding [cp/*parallel* false]
(with-shutdown! [pool (cp/threadpool 2)]
;; This is in serial!
;; This is in series; we block until all work is complete!
(cp/pmap pool myfn inputs)))
```

Expand Down

0 comments on commit 8ebc347

Please sign in to comment.