This commit is contained in:
2021-08-24 15:47:31 +08:00
parent 386e855939
commit 16d8d44437
3 changed files with 292 additions and 159 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Kiri\Pool\Helper;
interface QueueInterface
{
public function isEmpty(): bool;
public function push(mixed $data, float $timeout = -1): bool;
public function pop(float $timeout = -1): mixed;
public function stats(): array;
public function close(): bool;
public function length(): int;
public function isFull(): bool;
}