(message "Async process done, result should be 222: %s" result)))
If you omit the callback function, `async-start` will return a process object
-that you can `async-get` on when you're ready to wait for the result value:
+that you can call `async-get` on when you're ready to wait for the result
+value:
(let ((proc (async-start
;; What to do in the child process
;; ....
(message "Async process done, result should be 222: %s"
(async-get proc)))
+
+If you don't want to use a callback, and you don't care about any return value
+form the child proces, pass the `ignore` symbol as the second argument:
+
+ (async-start
+ (lambda ()
+ (delete-file "a remote file on a slow link" nil))
+ 'ignore)
;; (message "Async process done, result should be 222: %s" result)))
;;
;; If you omit the callback function, `async-start' will return a process
-;; object that you can `async-get' on when you're ready to wait for the result
-;; value:
+;; object that you can call `async-get' on when you're ready to wait for the
+;; result value:
;;
;; (let ((proc (async-start
;; ;; What to do in the child process
;; ;; ....
;; (message "Async process done, result should be 222: %s"
;; (async-get proc)))
+;;
+;; If you don't want to use a callback, and you don't care about any return
+;; value form the child proces, pass the `ignore' symbol as the second
+;; argument:
+;;
+;; (async-start
+;; (lambda ()
+;; (delete-file "a remote file on a slow link" nil))
+;; 'ignore)
\f
;;; Code: