To interrupt a running process, use
process-interrupt or
process-kill. To break a process and enter the debugger, use
process-break.
To suspend a process until a predicate is
t
, use
process-wait,
process-wait-with-timeout,
process-wait-local, process-wait-local-with-timeout, process-wait-local-with-timeout-and-periodic-checks or process-wait-local-with-timeout-and-periodic-checks. The function
process-wait-function returns a function that specifies a reason for the process waiting.
Note: The
process-wait*
functions need to be called from the process you want to suspend.