Skip to content

Commit c262aa5

Browse files
author
Oliver Stark
committed
renamed QueuePool to ProcessPool - makes more sense
1 parent cc31366 commit c262aa5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Plugin.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function init()
4141
// Register plugin components
4242
$this->setComponents([
4343
'async_handler' => QueueHandler::class,
44-
'async_pool' => QueuePool::class,
44+
'async_pool' => ProcessPool::class,
4545
]);
4646

4747
// Tell yii about the concrete implementation of CacheInterface
@@ -78,6 +78,7 @@ function (ActionEvent $event) {
7878
}
7979
}
8080
);
81+
8182
}
8283

8384

@@ -93,9 +94,9 @@ public function getHandler(): QueueHandler
9394
}
9495

9596
/**
96-
* @return \ostark\AsyncQueue\QueuePool
97+
* @return \ostark\AsyncQueue\ProcessPool
9798
*/
98-
public function getPool(): QueuePool
99+
public function getPool(): ProcessPool
99100
{
100101
return $this->get('async_pool');
101102
}

src/QueuePool.php renamed to src/ProcessPool.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
use yii\caching\CacheInterface;
44

55
/**
6-
* QueuePool
6+
* ProcessPool
77
*
88
* @author Oliver Stark
99
* @package AsyncQueue
1010
* @since 1.3.0
1111
*
1212
*/
13-
class QueuePool
13+
class ProcessPool
1414
{
1515

1616
const CACHE_KEY = 'async-queue-pool';

0 commit comments

Comments
 (0)