Skip to content

Commit e5aa7c9

Browse files
Clarify ProcessResult instance (#10678)
1 parent eb244f6 commit e5aa7c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

processes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $result->errorOutput();
5353
<a name="throwing-exceptions"></a>
5454
#### Throwing Exceptions
5555

56-
If you have a process result and would like to throw an instance of `Illuminate\Process\Exceptions\ProcessFailedException` if the exit code is greater than zero (thus indicating failure), you may use the `throw` and `throwIf` methods. If the process did not fail, the process result instance will be returned:
56+
If you have a process result and would like to throw an instance of `Illuminate\Process\Exceptions\ProcessFailedException` if the exit code is greater than zero (thus indicating failure), you may use the `throw` and `throwIf` methods. If the process did not fail, the `ProcessResult` instance will be returned:
5757

5858
```php
5959
$result = Process::run('ls -la')->throw();
@@ -239,7 +239,7 @@ while ($process->running()) {
239239
$result = $process->wait();
240240
```
241241

242-
As you may have noticed, you may invoke the `wait` method to wait until the process is finished executing and retrieve the process result instance:
242+
As you may have noticed, you may invoke the `wait` method to wait until the process is finished executing and retrieve the `ProcessResult` instance:
243243

244244
```php
245245
$process = Process::timeout(120)->start('bash import.sh');
@@ -345,7 +345,7 @@ while ($pool->running()->isNotEmpty()) {
345345
$results = $pool->wait();
346346
```
347347

348-
As you can see, you may wait for all of the pool processes to finish executing and resolve their results via the `wait` method. The `wait` method returns an array accessible object that allows you to access the process result instance of each process in the pool by its key:
348+
As you can see, you may wait for all of the pool processes to finish executing and resolve their results via the `wait` method. The `wait` method returns an array accessible object that allows you to access the `ProcessResult` instance of each process in the pool by its key:
349349

350350
```php
351351
$results = $pool->wait();

0 commit comments

Comments
 (0)