import { job_status } from "https://deno.land/x/denops_std@v6.4.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