diff options
Diffstat (limited to 'runtime/doc/eval.txt')
| -rw-r--r-- | runtime/doc/eval.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index afbe4f2661..2fb61e3092 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5333,9 +5333,10 @@ jobwait({ids}[, {timeout}]) *jobwait()* {ids} is a list of |job-id|s to wait for. {timeout} is the maximum number of milliseconds to wait. - {timeout} of zero can be used to check if a job-id is valid, - without waiting. + Use zero {timeout} to check the status of a job: > + let exited = jobwait([{job-id}], 0)[0] >= 0 +< During jobwait() callbacks for jobs not in the {ids} list may be invoked. The screen will not redraw unless |:redraw| is invoked by a callback. |