Amp\Process\Internal\Windows\Runner classRunner implementsAmp\Process\Internal\ProcessRunner

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct()
No documentation.
start —public functionstart(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 functionjoin(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 functionkill(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 functionsignal(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 functiondestroy(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