Next: concurrent, Previous: emacs-edbi, Up: Emacs Lisp [Contents][Index]
“Simple asynchronous functions for emacs lisp”
(deferred:$ (deferred:next (lambda () (message "deferred start"))) (deferred:nextc it (lambda () (message "chain 1") 1)) (deferred:nextc it (lambda (x) (message "chain 2 : %s" x))) (deferred:nextc it (lambda () (read-minibuffer "Input a number: "))) (deferred:nextc it (lambda (x) (message "Got the number : %i" x))) (deferred:error it (lambda (err) (message "Wrong input : %s" err))))
it
holds a deferred object in the previous line.
deferred:error
.