diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-12-01 15:34:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-12-01 15:34:12 +0100 |
commit | 958dc6923d341390531888058495569d73c356c3 (patch) | |
tree | b85d5c9ae21eb2de4d63550fd13fb510dccdf5af /runtime/doc/channel.txt | |
parent | 0945eaface83e78138fbd40f95cc590bab0e8c86 (diff) | |
download | vim-git-958dc6923d341390531888058495569d73c356c3.tar.gz |
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.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt index 2c3f83730..4fb55bffa 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. |