Fork me on GitHub
#cider
<
2017-06-18
>
stardiviner10:06:58

Is there a hook for cider-interactive-eval finished? I want to execute a function to notify user then the evaluation is done. I saw cider-interactive-eval has an CALLBACK argument, and CIDER support spinner. So I think CIDER already has this. Just I don't know how to do this.

dpsutton14:06:07

(defun cider-interactive-eval (form &optional callback bounds additional-params) the second parameter is a callback

dpsutton15:06:02

and if you look at the callback that it constructs,

dpsutton15:06:51

the signature of that nrepl-make-response-handler incldes a done handler, which here is the '`()` empty list at the end

dpsutton15:06:01

you could easily adapt this to include your handler in that spot and pass this into cider-interactive-eval