Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user=> (def c (async/chan 1 (take 5)))
- #'user/c
- user=> (dotimes [i 10] (async/go (async/>! c i)))
- nil
- user=> (async/<!! c)
- 8
- user=> (async/<!! c)
- 2
- user=> (async/<!! c)
- ClassCastException clojure.lang.PersistentVector cannot be cast to java.util.concurrent.locks.Lock clojure.core.async.impl.channels.ManyToManyChannel (channels.clj:56)
- user=> (async/<!! c)
- ClassCastException clojure.lang.PersistentVector cannot be cast to java.util.concurrent.locks.Lock clojure.core.async.impl.channels.ManyToManyChannel (channels.clj:56)
- user=> (async/<!! c)
- 9
- user=> (async/<!! c)
- 6
- user=> (async/<!! c)
- 5
- user=> (async/<!! c)
- 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement