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

x/denops_std/function/nvim/mod.ts>chanclose

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

Close a channel or a specific stream associated with it. For a job, {stream} can be one of "stdin", "stdout", "stderr" or "rpc" (closes stdin/stdout for a job started with "rpc":v:true) If {stream} is omitted, all streams are closed. If the channel is a pty, this will then close the pty master, sending SIGHUP to the job process. For a socket, there is only one stream, and {stream} should be ommited.

Parameters

denops: Denops
id: unknown
optional
stream: unknown

Returns

Promise<unknown>