如何在不退出REPL的情况下停止Clojure中的函数执行?

是否有可能在Clojure REPL中停止执行一个函数而不终止REPL会话? 我怎样才能做到这一点?

如果有问题,我在bash中使用lein repl 。 我正在使用Leiningen 1.7.1


你试过Ctrl-C吗? 它应该适用于你的情况。

更新。 我已经降级到Leiningen 1.7.1版。 它真的退出Ctrl-C的repl。 Bozhidar Batsov说,你应该升级lein。


对于稍后由此问题提出的emacs用户:

在Emacs + nrepl + lein2中:点击ctrl c ctrl b返回到您的repl

链接地址: http://www.djcxy.com/p/69149.html

上一篇: How to stop execution of function in Clojure without exiting REPL?

下一篇: Ember router: Asynchronous model (promises?)