This commit is contained in:
2023-04-03 13:54:09 +08:00
parent ac588a6f6f
commit c9637f2dd3
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ interface QueueInterface
* @param float $timeout
* @return void
*/
public function push(mixed $data, float $timeout = -1): void;
public function push(mixed $data, float $timeout = -1): bool;
/**
+6
View File
@@ -11,9 +11,15 @@ use JetBrains\PhpStorm\Pure;
class SplQueue implements QueueInterface
{
/**
* @var \SplQueue
*/
private \SplQueue $channel;
/**
* @var int
*/
public int $errCode = 0;