Interface ProcessManager
interface ProcessManager {
all: ProcessesMap;
add(process: Process): number;
create(options: ProcessOptions): Process;
get(pid: number): undefined | Process;
pid(): number;
remove(pid: number): void;
spawn(parent: number, process: Process): number;
}
all: ProcessesMap;
add(process: Process): number;
create(options: ProcessOptions): Process;
get(pid: number): undefined | Process;
pid(): number;
remove(pid: number): void;
spawn(parent: number, process: Process): number;
}
Methods
add
create
- create(options: ProcessOptions): Process
Create a process
Parameters
- options: ProcessOptions
Process options
Returns Process
- options: ProcessOptions
Interface for process manager functionality