Skip to content

Commit

Permalink
Fix example usage of threadpool.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Barrett committed Apr 8, 2014
1 parent d803746 commit fe4d627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ start work going and know it'll get done. But if you try to `pmap` over

```clojure
(require '[com.climate.claypoole :as cp])
(def pool (cp/threadpool))
;; A threadpool with 2 threads.
(def pool (cp/threadpool 2))
;; Future
(def fut (cp/future pool (myfn myinput)))
;; Ordered pmap
Expand Down

0 comments on commit fe4d627

Please sign in to comment.