Function: pfuture-await
pfuture-await is a byte-compiled function defined in pfuture.el.
Signature
(pfuture-await PROCESS &key (TIMEOUT 1) (JUST-THIS-ONE t))
Documentation
Block until PROCESS has produced output and return it.
Will accept the following optional keyword arguments:
TIMEOUT: The timeout in seconds to wait for the process. May be a float to specify fractional number of seconds. In case of a timeout nil will be returned.
JUST-THIS-ONE: When t only read from the process of FUTURE and no other. For
details see documentation of accept-process-output.
Source Code
;; Defined in ~/.emacs.d/elpa/pfuture-20220913.1401/pfuture.el
(cl-defun pfuture-await (process &key (timeout 1) (just-this-one t))
"Block until PROCESS has produced output and return it.
Will accept the following optional keyword arguments:
TIMEOUT: The timeout in seconds to wait for the process. May be a float to
specify fractional number of seconds. In case of a timeout nil will be
returned.
JUST-THIS-ONE: When t only read from the process of FUTURE and no other. For
details see documentation of `accept-process-output'."
(let (inhibit-quit)
(accept-process-output
process timeout nil just-this-one))
(pfuture-result process))