变更
This commit is contained in:
@@ -17,7 +17,7 @@ interface QueueInterface
|
|||||||
* @param float $timeout
|
* @param float $timeout
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function push(mixed $data, float $timeout = -1): void;
|
public function push(mixed $data, float $timeout = -1): bool;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,9 +11,15 @@ use JetBrains\PhpStorm\Pure;
|
|||||||
class SplQueue implements QueueInterface
|
class SplQueue implements QueueInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \SplQueue
|
||||||
|
*/
|
||||||
private \SplQueue $channel;
|
private \SplQueue $channel;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
public int $errCode = 0;
|
public int $errCode = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user