Fork me on GitHub
#jackdaw
<
2021-07-15
>
phoenixjj12:07:59

I have created a function which uses with-open to consume event from Kafka. when I run this function from REPL, it is blocking the REPL thread. I am not able to eval any other expression or function.

phoenixjj12:07:49

Is there a way to push this in background or separate thread ?

dbernal00:07:32

You can try using (future …) or clojure.async

phoenixjj12:07:26

Okay. I started project from lein repl then from emacs used cider-connect to connect to repl started by lein.