summaryrefslogtreecommitdiffstats
path: root/runtime/doc/channel.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-20 17:24:11 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-20 17:24:11 +0200
commit06d2d38ab7564e1f784b1058a4ef4580cd6d1810 (patch)
treefc97dcc4b6485cf9fe9f2ba92e276a8a998032b5 /runtime/doc/channel.txt
parentdc303bce10c60a3314078ea168064552fadf01af (diff)
Updated runtime files.
Diffstat (limited to 'runtime/doc/channel.txt')
-rw-r--r--runtime/doc/channel.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index 2f67b973e8..e527086f2e 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -1,4 +1,4 @@
-*channel.txt* For Vim version 7.4. Last change: 2016 Apr 30
+*channel.txt* For Vim version 7.4. Last change: 2016 May 19
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -146,11 +146,19 @@ Use |ch_status()| to see if the channel could be opened.
For all callbacks: Use |function()| to bind it to arguments
and/or a Dictionary. Or use the form "dict.function" to bind
the Dictionary.
+
+ Callbacks are only called at a "safe" moment, usually when Vim
+ is waiting for the user to type a character. Vim does not use
+ multi-threading.
+
*close_cb*
"close_cb" A function that is called when the channel gets closed, other
than by calling ch_close(). It should be defined like this: >
func MyCloseHandler(channel)
-< *waittime*
+< Vim will invoke callbacks that handle data before invoking
+ close_cb, thus when this function is called no more data will
+ be received.
+ *waittime*
"waittime" The time to wait for the connection to be made in
milliseconds. A negative number waits forever.
@@ -572,6 +580,8 @@ See |job_setoptions()| and |ch_setoptions()|.
Vim checks about every 10 seconds for jobs that ended.
The callback can also be triggered by calling
|job_status()|.
+ Note that data can be buffered, callbacks may still be
+ called after the process ends.
*job-timeout*
"timeout" The time to wait for a request when blocking, E.g.
when using ch_evalexpr(). In milliseconds. The