How to stop function execution in Clojure without exiting REPL?

Is it possible in Clojure REPL to terminate a function without ending a REPL session? How can i do this?

I use lein repl in bash if that matters. I am using Leiningen 1.7.1

+7
source share
2 answers

Have you tried just Ctrl-C ? It should work in your case.

Update. I upgraded to Leiningen version 1.7.1. And it really stops replacing Ctrl-C. You must update the lane, as Bozhidar Batov said.

+3
source

For emacs users who later ask this question:

In Emacs + nrepl + lein2: press ctrl c ctrl b to return to your replica

+1
source

All Articles