Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using clojure-1.3.0-beta1
with leiningen 1.6.0
user=> @(future 2)
RejectedExecutionException java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution (ThreadPoolExecutor.java:1768)
user=> (pst)
RejectedExecutionException
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution (ThreadPoolExecutor.java:1768)
java.util.concurrent.ThreadPoolExecutor.reject (ThreadPoolExecutor.java:767)
java.util.concurrent.ThreadPoolExecutor.execute (ThreadPoolExecutor.java:658)
java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:92)
clojure.core/future-call (core.clj:6042)
user/eval69 (NO_SOURCE_FILE:4)
clojure.lang.Compiler.eval (Compiler.java:6406)
clojure.lang.Compiler.eval (Compiler.java:6372)
clojure.core/eval (core.clj:2745)
clojure.main/repl/read-eval-print--6016 (main.clj:244)
clojure.main/repl/fn--6021 (main.clj:265)
clojure.main/repl (main.clj:265)
nil
user=> (def c (agent 2))
#'user/c
user=> (send c inc)
#<Agent@181b7c76: 2>
user=> (await c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.