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