rpi-cam-lib
Version:
A lightweight library to control CSI-2 camera modules via any raspberry pi can read camera module but is dependent to shell.
23 lines (22 loc) • 1 kB
TypeScript
import type { IOutputException } from "./interfaces/index";
interface ITASKMANItem {
pid: number;
id: string;
}
export declare class Taskman {
tasks: ITASKMANItem[];
/**
* Kills a async task opreation of camera.
* @param {string} id is a custom id to call it everywhere and should be unique or get a error.
* @param {boolean} force to kill a task or not, forcing sends a SIGKILL code to a task but, else sends a SIGTERM code to process.
* @returns {IOutputException} status of killing a process, if id not exists, returns a error response, but else, throw a error.
*/
killTask(id: string, force?: boolean): IOutputException;
/**
*
* @ * @param {boolean} force to kill a task or not, forcing sends a SIGKILL code to a task but, else sends a SIGTERM code to processes.
* @returns {IOutputException} status of killing all process, if error detected, throw a error.
*/
killAllTasks(force?: boolean): IOutputException;
}
export {};