Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v5.2.0/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<string>