This commit is contained in:
2023-04-03 00:14:29 +08:00
parent dcf4de9900
commit fb851bbfc1
2 changed files with 20 additions and 1 deletions
+13
View File
@@ -243,6 +243,19 @@ class Pool extends Component
}
/**
* @param $name
* @param int $time
* @return array
* @throws ConfigException
*/
public function waite($name, int $time = 30): mixed
{
return $this->channel($name)->pop($time);
}
/**
* @param string $name
* @throws Exception