Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #258 from brunchboy/fix-future-pool
Browse files Browse the repository at this point in the history
The `future` description was inaccurate, as confirmed by Alex Miller.
  • Loading branch information
seancorfield committed Dec 21, 2018
2 parents b1bf83f + 5cf8c0c commit 47c634f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions articles/language/concurrency_and_parallelism.md
Expand Up @@ -938,9 +938,9 @@ with `clojure.core/realized?`:
;; ⇒ 49995000
```

Clojure futures are evaluated in a fixed size thread pool that is also used by agents
(updated via `clojure.core/send`). This works well in many cases but may result in
throughput lower than expected in applications that heavily use agents and futures at the same time.
Clojure futures are evaluated in an unbounded, cached thread pool that is also used by agents
(updated via `clojure.core/send-off`). This works well in many cases but may result in
exhaustion of the heap or thrashing if too many futures are created.

Finally, Clojure futures implement `java.util.concurrent.Future` and can be used with Java APIs
that accept them.
Expand Down

0 comments on commit 47c634f

Please sign in to comment.