summaryrefslogtreecommitdiffstats
path: root/runtime/doc/channel.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-12-01 15:34:12 +0100
committerBram Moolenaar <Bram@vim.org>2016-12-01 15:34:12 +0100
commit958dc6923d341390531888058495569d73c356c3 (patch)
treeb85d5c9ae21eb2de4d63550fd13fb510dccdf5af /runtime/doc/channel.txt
parent0945eaface83e78138fbd40f95cc590bab0e8c86 (diff)
patch 8.0.0107v8.0.0107
Problem: When reading channel output in a timer, messages may go missing. (Skywind) Solution: Add the "drop" option. Write error messages in the channel log. Don't have ch_canread() check for the channel being open.
Diffstat (limited to 'runtime/doc/channel.txt')
-rw-r--r--runtime/doc/channel.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index 2c3f837300..4fb55bffa1 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -155,7 +155,13 @@ Use |ch_status()| to see if the channel could be opened.
func MyCloseHandler(channel)
< Vim will invoke callbacks that handle data before invoking
close_cb, thus when this function is called no more data will
- be received.
+ be passed to the callbacks.
+ *channel-drop*
+"drop" Specifies when to drop messages:
+ "auto" When there is no callback to handle a message.
+ The "close_cb" is also considered for this.
+ "never" All messages will be kept.
+
*waittime*
"waittime" The time to wait for the connection to be made in
milliseconds. A negative number waits forever.