jackdaw

phoenixjj 2021-07-15T12:38:59.021700Z

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.

phoenixjj 2021-07-15T12:39:49.022400Z

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

dbernal 2021-07-16T00:43:32.023500Z

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

dbernal 2021-07-16T00:44:04.023700Z

This too: https://clojuredocs.org/clojure.core.async/thread

phoenixjj 2021-07-15T12:51:26.023300Z

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