Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: fibonacci
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (21 sloc) 0.729 kB
(require 'epc)
(when noninteractive
(load "subr")
(load "byte-run"))
(eval-when-compile (require 'cl))
(message "Start EPC")
(defvar my-epc (epc:start-epc (or (getenv "PYTHON") "python")
'("-m" "epc.server")))
(message "Start request")
(deferred:$
(epc:call-deferred my-epc 'echo '(10))
(deferred:nextc it
(lambda (x) (message "Return : %S" x))))
(message "Return : %S" (epc:call-sync my-epc 'echo '(10 40)))
(loop for i from 1 to 5
do (deferred:$
(epc:call-deferred my-epc 'echo (list i))
(deferred:nextc it
(lambda (x) (message "Return : %S" x)))))
(message "Return : %S"
(epc:sync my-epc (epc:query-methods-deferred my-epc)))
Jump to Line
Something went wrong with that request. Please try again.