Wait waits for the [Process] to exit, and then returns a ProcessState describing its status and an error, if any. Wait releases any resources associated with the Process. On most operating systems, the Process must be a child of the current process or an error will be returned.
WithHandle calls a supplied function f with a valid process handle as an argument. The handle is guaranteed to refer to process p until f returns, even if p terminates. This function cannot be used after [Process.Release] or [Process.Wait].
If process handles are not supported or a handle is not available, it returns [ErrNoHandle]. Currently, process handles are supported on Linux 5.4 or later (pidfd) and Windows.
Pid is the operating system process ID.
Generated using TypeDoc
Process stores the information about a process created by [StartProcess].