modify plugin name

This commit is contained in:
2022-06-17 11:59:19 +08:00
parent 0a70a95b63
commit 92b5b248a3
7 changed files with 257 additions and 29 deletions
+55
View File
@@ -0,0 +1,55 @@
<?php
namespace Kiri;
class Coordinator
{
const WORKER_START = 'worker:start';
private bool $waite = true;
private static array $_waite = [];
/**
* @return bool
*/
public function isWaite(): bool
{
return $this->waite;
}
/**
* @return void
*/
public function yield(): void
{
if ($this->waite === false) {
return;
}
$this->yield();
}
/**
* @return void
*/
public function waite(): void
{
$this->waite = true;
}
/**
* @return void
*/
public function done(): void
{
$this->waite = false;
}
}