eee
This commit is contained in:
@@ -9,7 +9,7 @@ use Swoole\Coroutine;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
abstract class BaseProcess implements OnProcessInterface
|
||||
abstract class AbstractProcess implements OnProcessInterface
|
||||
{
|
||||
|
||||
private bool $stop = false;
|
||||
@@ -122,7 +122,7 @@ abstract class BaseProcess implements OnProcessInterface
|
||||
{
|
||||
$this->stop = true;
|
||||
$value = Context::get('waite:process:message');
|
||||
\Kiri::getLogger()->alert('Process ' . $this->getName() . ' stop');
|
||||
\Kiri::getLogger()->alert('AbstractProcess ' . $this->getName() . ' stop');
|
||||
if (!is_null($value) && Coroutine::exists((int)$value)) {
|
||||
Coroutine::cancel((int)$value);
|
||||
}
|
||||
@@ -8,7 +8,7 @@ use Swoole\Process;
|
||||
|
||||
|
||||
/**
|
||||
* Interface BaseProcess
|
||||
* Interface AbstractProcess
|
||||
* @package Contract
|
||||
*/
|
||||
interface OnProcessInterface
|
||||
|
||||
Reference in New Issue
Block a user