sworther
5/5/2018 - 12:55 PM

#elisp async start demo

#elisp async start demo

(defun async-demo ()
  (async-start
   ;; What to do in the child process
   (lambda ()
     (message "This is a test")
     (sleep-for 3)
     222)

   ;; What to do when it finishes
   (lambda (result)
     (message "Async process done, result should be 222: %s"
              result))))

(async-demo)