Name
Default: Last word of the command.
Example with new Process(['/foo', 'bar', 'baz']): name will be baz.
<?php
use Steevanb\ParallelProcess\Process\Process;
(new Process(['/command/part/default-name']))->setName('foo');
Canceled as error
You can configure if the cancelation of a process is considered as an error (1) or not (0) for the exit code.
Default: true.
<?php
use Steevanb\ParallelProcess\Process\Process;
use Symfony\Component\Console\Output\OutputInterface;
(new Process(['command']))->setCanceledAsError(true);
See example.