Amp\Process\Internal\Windows\Runner class Runner implements Amp\Process\Internal\ProcessRunner

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct()
No documentation.
start — public function start(string $command, string $cwd = null, array $env = [], array $options = []): Amp\Process\Internal\ProcessHandle

Start a process using the supplied parameters.

Type Parameter Description Default Value
string $command The command to execute. none
string $cwd The working directory for the child process. null
array $env Environment variables to pass to the child process. []
array $options `proc_open()` options. []
join — public function join(Amp\Process\Internal\ProcessHandle $handle): Amp\Promise

Wait for the child process to end.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none
kill — public function kill(Amp\Process\Internal\ProcessHandle $handle)

Forcibly end the child process.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none
signal — public function signal(Amp\Process\Internal\ProcessHandle $handle, int $signo)

Send a signal signal to the child process.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none
int $signo Signal number to send to process. none
destroy — public function destroy(Amp\Process\Internal\ProcessHandle $handle)

Release all resources held by the process handle.

Type Parameter Description Default Value
Amp\Process\Internal\ProcessHandle $handle The process descriptor. none