diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-28 11:30:23 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-29 20:35:44 -0300 |
commit | 028f6d7d3f822dd620873a2a51c2d68ab1ef0b95 (patch) | |
tree | d11b222424c732f4824857b7f2e8508280c5befe /runtime | |
parent | 6e7757ad51dfe3b2de857ff8a8688718ff6115ac (diff) | |
download | rneovim-028f6d7d3f822dd620873a2a51c2d68ab1ef0b95.tar.gz rneovim-028f6d7d3f822dd620873a2a51c2d68ab1ef0b95.tar.bz2 rneovim-028f6d7d3f822dd620873a2a51c2d68ab1ef0b95.zip |
eval: Implement `jobwait()` vimscript function
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 909b4743a6..9224fd25e0 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4061,6 +4061,24 @@ jobstop({job}) {Nvim} *jobstop()* `v:job_data[0]` set to `exited`. See |job-control| for more information. +jobwait({ids}[, {timeout}]) {Nvim} *jobwait()* + Wait for a set of jobs to finish. The {ids} argument is a list + of ids for jobs that will be waited for. If passed, {timeout} + is the maximum number of milliseconds to wait. While this + function is executing, callbacks for jobs not in the {ids} + list can be executed. Also, the screen wont be updated unless + |:redraw| is invoked by one of the callbacks. + + Returns a list of integers with the same length as {ids}, with + each integer representing the wait result for the + corresponding job id. The possible values for the resulting + integers are: + + * the job return code if the job exited + * -1 if the wait timed out for the job + * -2 if the job was interrupted + * -3 if the job id is invalid. + join({list} [, {sep}]) *join()* Join the items in {list} together into one String. When {sep} is specified it is put in between the items. If |