Asynchronously wait for process finish in elisp?

asynchronous, elisp, emacs

Solution

You want to read about Process Sentinels:

C-hig `(elisp) Sentinels` RET

Problem

I would like to be able to asynchronously wait for process for example: ``` (start-file-process "my-process" "*my-process*" "do" "something") (on-finish "my-process" (do-something-else)) ```

Original source