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_status

📚 Standard module for denops.vim
Latest
function ch_status
import { ch_status } from "https://deno.land/x/denops_std@v6.5.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<string>