Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

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

๐Ÿ“š Standard module for denops.vim
Go to Latest
function ch_status
import { ch_status } from "https://deno.land/x/denops_std@v3.9.0/function/vim/mod.ts";

Return the status of {handle}: "fail" failed to open the channel "open" channel can be used "buffered" channel can be read, not written to "closed" channel can not be used {handle} can be a Channel or a Job that has a Channel. "buffered" is used when the channel was closed but there is still data that can be obtained with |ch_read()|. If {options} is given it can contain a "part" entry to specify the part of the channel to return the status for: "out" or "err". For example, to get the error status: ch_status(job, {"part": "err"}) Can also be used as a |method|: GetChannel()->ch_status()

Parameters

denops: Denops
handle: unknown
optional
options: unknown

Returns

Promise<unknown>