@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | return $this->process->isTerminated(); |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @return callable |
|
82 | + */ |
|
80 | 83 | public function output() |
81 | 84 | { |
82 | 85 | if (! $this->output) { |
@@ -92,6 +95,9 @@ discard block |
||
92 | 95 | return $this->output; |
93 | 96 | } |
94 | 97 | |
98 | + /** |
|
99 | + * @return callable |
|
100 | + */ |
|
95 | 101 | public function errorOutput() |
96 | 102 | { |
97 | 103 | if (! $this->errorOutput) { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\Async; |
4 | 4 | |
5 | 5 | use Error; |
6 | -use Throwable; |
|
7 | -use Symfony\Component\Process\Process; |
|
8 | 6 | use Spatie\Async\Output\SerializableException; |
7 | +use Symfony\Component\Process\Process; |
|
8 | +use Throwable; |
|
9 | 9 | |
10 | 10 | class ParallelProcess |
11 | 11 | { |