Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>job_status

๐Ÿ“š Standard module for denops.vim
Go to Latest
function job_status
import { job_status } from "https://deno.land/x/denops_std@v3.6.0/function/vim/mod.ts";

Returns a String with the status of {job}: "run" job is running "fail" job failed to start "dead" job died or was stopped after running On Unix a non-existing command results in "dead" instead of "fail", because a fork happens before the failure can be detected. If in Vim9 script a variable is declared with type "job" but never assigned to, passing that variable to job_status() returns "fail". If an exit callback was set with the "exit_cb" option and the job is now detected to be "dead" the callback will be invoked. For more information see |job_info()|. Can also be used as a |method|: GetJob()->job_status()

Parameters

denops: Denops
job: unknown

Returns

Promise<unknown>