UtilityProcess Type
⚠ Process Availability: Main ✔ | Renderer ✔ | Utility ✔ | Exported ❌
Instance members
| Instance member |
Description
|
Full Usage:
this.kill ()
Returns: bool
Modifiers: inline |
Terminates the process gracefully. On POSIX, it uses SIGTERM but will ensure the process is reaped on exit. This function returns true if the kill is successful, and false otherwise.
|
|
Emitted when the child process needs to terminate due to non continuable error from V8.No matter if you listen to the error event, the exit event will be emitted after the child process terminates.
|
Full Usage:
this.offError handler
Parameters:
Type -> string -> string -> unit
Modifiers: inline |
Emitted when the child process needs to terminate due to non continuable error from V8.No matter if you listen to the error event, the exit event will be emitted after the child process terminates.
|
Full Usage:
this.offExit handler
Parameters:
float -> unit
Modifiers: inline |
Emitted after the child process ends.
|
Full Usage:
this.offMessage handler
Parameters:
obj -> unit
Modifiers: inline |
Emitted when the child process sends a message using process.parentPort.postMessage().
|
Full Usage:
this.offSpawn handler
Parameters:
unit -> unit
Modifiers: inline |
Emitted once the child process has spawned successfully.
|
|
Emitted when the child process needs to terminate due to non continuable error from V8.No matter if you listen to the error event, the exit event will be emitted after the child process terminates.
|
Full Usage:
this.onError handler
Parameters:
Type -> string -> string -> unit
Modifiers: inline |
Emitted when the child process needs to terminate due to non continuable error from V8.No matter if you listen to the error event, the exit event will be emitted after the child process terminates.
|
Full Usage:
this.onExit handler
Parameters:
float -> unit
Modifiers: inline |
Emitted after the child process ends.
|
Full Usage:
this.onMessage handler
Parameters:
obj -> unit
Modifiers: inline |
Emitted when the child process sends a message using process.parentPort.postMessage().
|
Full Usage:
this.onSpawn handler
Parameters:
unit -> unit
Modifiers: inline |
Emitted once the child process has spawned successfully.
|
|
Emitted when the child process needs to terminate due to non continuable error from V8.No matter if you listen to the error event, the exit event will be emitted after the child process terminates.
|
Full Usage:
this.onceError handler
Parameters:
Type -> string -> string -> unit
Modifiers: inline |
Emitted when the child process needs to terminate due to non continuable error from V8.No matter if you listen to the error event, the exit event will be emitted after the child process terminates.
|
Full Usage:
this.onceExit handler
Parameters:
float -> unit
Modifiers: inline |
Emitted after the child process ends.
|
Full Usage:
this.onceMessage handler
Parameters:
obj -> unit
Modifiers: inline |
Emitted when the child process sends a message using process.parentPort.postMessage().
|
Full Usage:
this.onceSpawn handler
Parameters:
unit -> unit
Modifiers: inline |
Emitted once the child process has spawned successfully.
|
Full Usage:
this.pid
|
A Integer | undefined representing the process identifier (PID) of the child process. Until the child process has spawned successfully, the value is undefined. When the child process exits, then the value is undefined after the exit event is emitted.> [!NOTE] You can use the pid to determine if the process is currently running. |
Full Usage:
this.postMessage (message, ?transfer)
Parameters:
obj
?transfer : MessagePortMain[]
Modifiers: inline |
Send a message to the child process, optionally transferring ownership of zero or more MessagePortMain objects.For example:
|
Full Usage:
this.stderr
|
A NodeJS.ReadableStream | null that represents the child process's stderr. If the child was spawned with options.stdio[2] set to anything other than 'pipe', then this will be null. When the child process exits, then the value is null after the exit event is emitted. |
Full Usage:
this.stdout
|
A NodeJS.ReadableStream | null that represents the child process's stdout. If the child was spawned with options.stdio[1] set to anything other than 'pipe', then this will be null. When the child process exits, then the value is null after the exit event is emitted. |
fable-electron-docs-api