Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/vim/mod.ts>ch_read

📚 Standard module for denops.vim
Go to Latest
function ch_read
import { ch_read } from "https://deno.land/x/denops_std@v3.8.1/function/vim/mod.ts";

Read from {handle} and return the received message. {handle} can be a Channel or a Job that has a Channel. For a NL channel this waits for a NL to arrive, except when there is nothing more to read (channel was closed). See |channel-more|. Can also be used as a |method|: GetChannel()->ch_read()

Parameters

denops: Denops
handle: unknown
optional
options: unknown

Returns

Promise<unknown>