@@ -2009,6 +2009,7 @@ byteidxcomp({expr}, {nr}) Number byte index of {nr}'th char in {expr}
20092009call({func} , {arglist} [, {dict} ])
20102010 any call {func} with arguments {arglist}
20112011ceil({expr} ) Float round {expr} up
2012+ ch_canread({handle} ) Number check if there is something to read
20122013ch_close({handle} ) none close {handle}
20132014ch_close_in({handle} ) none close in part of {handle}
20142015ch_evalexpr({handle} , {expr} [, {options} ])
@@ -2980,16 +2981,28 @@ confirm({msg} [, {choices} [, {default} [, {type}]]])
29802981 don't fit, a vertical layout is used anyway. For some systems
29812982 the horizontal layout is always used.
29822983
2984+ ch_canread({handle} ) *ch_canread()*
2985+ Return non-zero when there is something to read from {handle} .
2986+ {handle} can be a Channel or a Job that has a Channel.
2987+
2988+ This is useful to read from a channel at a convenient time,
2989+ e.g. from a timer.
2990+
2991+ Note that messages are dropped when the channel does not have
2992+ a callback. Add a close callback to avoid that.
2993+
2994+ {only available when compiled with the | +channel | feature}
2995+
29832996ch_close({handle} ) *ch_close()*
29842997 Close {handle} . See | channel-close | .
2985- {handle} can be Channel or a Job that has a Channel.
2998+ {handle} can be a Channel or a Job that has a Channel.
29862999 A close callback is not invoked.
29873000
29883001 {only available when compiled with the | +channel | feature}
29893002
29903003ch_close_in({handle} ) *ch_close_in()*
29913004 Close the "in" part of {handle} . See | channel-close-in | .
2992- {handle} can be Channel or a Job that has a Channel.
3005+ {handle} can be a Channel or a Job that has a Channel.
29933006 A close callback is not invoked.
29943007
29953008 {only available when compiled with the | +channel | feature}
@@ -2998,7 +3011,7 @@ ch_evalexpr({handle}, {expr} [, {options}]) *ch_evalexpr()*
29983011 Send {expr} over {handle} . The {expr} is encoded
29993012 according to the type of channel. The function cannot be used
30003013 with a raw channel. See | channel-use | .
3001- {handle} can be Channel or a Job that has a Channel.
3014+ {handle} can be a Channel or a Job that has a Channel.
30023015 *E917*
30033016 {options} must be a Dictionary. It must not have a "callback"
30043017 entry. It can have a "timeout" entry to specify the timeout
@@ -3012,7 +3025,7 @@ ch_evalexpr({handle}, {expr} [, {options}]) *ch_evalexpr()*
30123025
30133026ch_evalraw({handle} , {string} [, {options} ]) *ch_evalraw()*
30143027 Send {string} over {handle} .
3015- {handle} can be Channel or a Job that has a Channel.
3028+ {handle} can be a Channel or a Job that has a Channel.
30163029
30173030 Works like | ch_evalexpr() | , but does not encode the request or
30183031 decode the response. The caller is responsible for the
@@ -3025,7 +3038,7 @@ ch_evalraw({handle}, {string} [, {options}]) *ch_evalraw()*
30253038
30263039ch_getbufnr({handle} , {what} ) *ch_getbufnr()*
30273040 Get the buffer number that {handle} is using for {what} .
3028- {handle} can be Channel or a Job that has a Channel.
3041+ {handle} can be a Channel or a Job that has a Channel.
30293042 {what} can be "err" for stderr, "out" for stdout or empty for
30303043 socket output.
30313044 Returns -1 when there is no buffer.
@@ -3099,7 +3112,7 @@ ch_open({address} [, {options}]) *ch_open()*
30993112
31003113ch_read({handle} [, {options} ]) *ch_read()*
31013114 Read from {handle} and return the received message.
3102- {handle} can be Channel or a Job that has a Channel.
3115+ {handle} can be a Channel or a Job that has a Channel.
31033116 See | channel-more | .
31043117 {only available when compiled with the | +channel | feature}
31053118
@@ -3113,7 +3126,7 @@ ch_sendexpr({handle}, {expr} [, {options}]) *ch_sendexpr()*
31133126 according to the type of channel. The function cannot be used
31143127 with a raw channel.
31153128 See | channel-use | . *E912*
3116- {handle} can be Channel or a Job that has a Channel.
3129+ {handle} can be a Channel or a Job that has a Channel.
31173130
31183131 {only available when compiled with the | +channel | feature}
31193132
@@ -3134,7 +3147,7 @@ ch_setoptions({handle}, {options}) *ch_setoptions()*
31343147 "timeout" default read timeout in msec
31353148 "mode" mode for the whole channel
31363149 See | ch_open() | for more explanation.
3137- {handle} can be Channel or a Job that has a Channel.
3150+ {handle} can be a Channel or a Job that has a Channel.
31383151
31393152 Note that changing the mode may cause queued messages to be
31403153 lost.
@@ -3148,7 +3161,7 @@ ch_status({handle} [, {options}]) *ch_status()*
31483161 "open" channel can be used
31493162 "buffered" channel can be read, not written to
31503163 "closed" channel can not be used
3151- {handle} can be Channel or a Job that has a Channel.
3164+ {handle} can be a Channel or a Job that has a Channel.
31523165 "buffered" is used when the channel was closed but there is
31533166 still data that can be obtained with | ch_read() | .
31543167
0 commit comments