.jobs.kill Liatir.jobs.kill() stops a running async process job.
kill(jobId: string): Promise<boolean>kill(job_id) -> boolkill(job_id)INFO
Liatir provides managed Rust and C++ libraries for Native/WASM Plugins. This app bridge is Native-only; WASM stays isolated.
kill(job_id: &str) -> Result<Value>bool killed = liatir::invoke("lia_jobs_kill", {{"jobId", job_id}}).get<bool>();| Parameter | Type | Description |
|---|---|---|
jobId | string | Unique identifier for the job. |
| Parameter | Type | Description |
|---|---|---|
job_id | str | Unique identifier for the job. |
const killed = await Liatir.jobs.kill(jobId);
if (killed) {
console.log('Job terminated successfully');
}killed = ctx.liatir.jobs.kill(job_id)
if killed:
print('Job terminated successfully')killed <- ctx$liatir$jobs$kill(job_id)
if (isTRUE(killed)) message("Job terminated successfully")INFO
Liatir provides managed Rust and C++ libraries for Native/WASM Plugins. This app bridge is Native-only; WASM stays isolated.
let killed = ctx.liatir.jobs().kill(job_id)?;
if killed.as_bool() == Some(true) {
println!("Job terminated successfully");
}bool killed = liatir::invoke("lia_jobs_kill", {{"jobId", job_id}}).get<bool>();
if (killed) std::cout << "Job terminated successfully\n";Returns true if the job was successfully killed, false otherwise.
Use this method with caution.