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>jobstop

📚 Standard module for denops.vim
Go to Latest
function jobstop
import { jobstop } from "https://deno.land/x/denops_std@v5.0.1/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>