This commit is contained in:
2023-08-16 16:35:55 +08:00
parent 04db55e79a
commit 62b7d86b45
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -95,12 +95,13 @@ class Pool implements PoolInterface
/**
* @param string $name
* @param int $waite_time
* @return array
* @throws Exception
*/
public function get(string $name): mixed
public function get(string $name, int $waite_time = 3): mixed
{
return $this->channel($name)->pop();
return $this->channel($name)->pop($waite_time);
}