Skip to main content
Module

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

📚 Standard module for denops.vim
Latest
function jobstop
import { jobstop } from "https://deno.land/x/denops_std@v6.5.0/function/nvim/mod.ts";

Stop job-id {id} by sending SIGTERM to the job process. If the process does not terminate after a timeout then SIGKILL will be sent. When the job terminates its on_exit handler (if any) will be invoked. See job-control.

Returns 1 for valid job id, 0 for invalid id, including jobs have exited or stopped.

Parameters

denops: Denops
id: unknown

Returns

Promise<number>