@@ -10,12 +10,9 @@ |
||
10 | 10 | use Yii; |
11 | 11 | use Closure; |
12 | 12 | use Throwable; |
13 | - |
|
14 | 13 | use yii\base\Component; |
15 | - |
|
16 | 14 | use Spatie\Async\Pool; |
17 | 15 | use Spatie\Async\Process\Runnable; |
18 | - |
|
19 | 16 | use vxm\async\event\Event; |
20 | 17 | use vxm\async\event\ErrorEvent; |
21 | 18 | use vxm\async\event\SuccessEvent; |
@@ -25,6 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @inheritDoc |
28 | + * @param callable[] $task |
|
28 | 29 | */ |
29 | 30 | public static function createProcess($task): Runnable |
30 | 31 | { |
@@ -8,9 +8,7 @@ |
||
8 | 8 | namespace vxm\test\unit\async; |
9 | 9 | |
10 | 10 | use Yii; |
11 | - |
|
12 | 11 | use Exception; |
13 | - |
|
14 | 12 | use vxm\async\Async; |
15 | 13 | use vxm\async\event\Event; |
16 | 14 | use vxm\async\event\ErrorEvent; |