This commit is contained in:
xl
2024-11-15 14:30:18 +08:00
parent ef312c2aa4
commit 3a0c5f6d70
+3 -4
View File
@@ -17,10 +17,9 @@ class Coordinator
*/ */
public function yield(): void public function yield(): void
{ {
if ($this->waite === false) { while ($this->waite) {
return; usleep(1000);
} }
$this->yield();
} }