@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Make async job. |
85 | 85 | * |
86 | - * @param $job |
|
86 | + * @param callable $job |
|
87 | 87 | * |
88 | - * @return mixed |
|
88 | + * @return Closure |
|
89 | 89 | */ |
90 | 90 | protected function makeJob($job) |
91 | 91 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * @param string $event |
132 | 132 | * @param Runnable $process |
133 | 133 | * |
134 | - * @return callable |
|
134 | + * @return Closure |
|
135 | 135 | */ |
136 | 136 | protected function makeProcessListener(string $event, Runnable $process): callable |
137 | 137 | { |
@@ -9,10 +9,10 @@ |
||
9 | 9 | namespace VXM\Async; |
10 | 10 | |
11 | 11 | use Closure; |
12 | +use Illuminate\Contracts\Events\Dispatcher as EventDispatcher; |
|
12 | 13 | use Illuminate\Support\Str; |
13 | 14 | use Spatie\Async\Process\Runnable; |
14 | 15 | use VXM\Async\Runtime\ParentRuntime; |
15 | -use Illuminate\Contracts\Events\Dispatcher as EventDispatcher; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @author Vuong Minh <[email protected]> |
@@ -8,9 +8,9 @@ |
||
8 | 8 | |
9 | 9 | namespace VXM\Async; |
10 | 10 | |
11 | -use VXM\Async\Commands\JobMakeCommand; |
|
12 | 11 | use Illuminate\Contracts\Support\DeferrableProvider; |
13 | 12 | use Illuminate\Support\ServiceProvider as BaseServiceProvider; |
13 | +use VXM\Async\Commands\JobMakeCommand; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * @author Vuong Minh <[email protected]> |
@@ -8,11 +8,11 @@ |
||
8 | 8 | namespace VXM\Async\Runtime; |
9 | 9 | |
10 | 10 | use Spatie\Async\Pool; |
11 | +use Spatie\Async\Process\ParallelProcess; |
|
11 | 12 | use Spatie\Async\Process\Runnable; |
13 | +use Spatie\Async\Runtime\ParentRuntime as BaseParentRuntime; |
|
12 | 14 | use Symfony\Component\Process\Process; |
13 | -use Spatie\Async\Process\ParallelProcess; |
|
14 | 15 | use VXM\Async\Process\SynchronousProcess; |
15 | -use Spatie\Async\Runtime\ParentRuntime as BaseParentRuntime; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * ParentRuntime support invoke console environment in child runtime mode. |
@@ -24,6 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | /** |
26 | 26 | * {@inheritdoc} |
27 | + * @param \Closure $task |
|
27 | 28 | */ |
28 | 29 | public static function createProcess($task): Runnable |
29 | 30 | { |