Skip to main content
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@v6.4.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 omitted.

Parameters

denops: Denops
id: unknown
optional
stream: unknown

Returns

Promise<number>