On Mon 06 Mar 2017 20:15, Vladimir Zhbanov <vzhba...@gmail.com> writes:

> OK, put things other ways. I have a GUI app which starts REPL in
> another thread. Is there a way to call a thunk in that REPL from
> the GUI app? Basically, I want it to exit gracefully by calling
> (quit) in the REPL before GUI exits. 

What if, in your GUI app, you call stop-server-and-clients! from (system
repl server) ?  That aborts to a prompt to unwind the stack, so it's not
catchable but a dynamic-wind out guard will run.  Only really works in
2.2 tho I think.

Andy

Reply via email to