Config
class Config
Configuration for a simple pool.
Properties
| protected callable | $callback |
Methods
No description
No description
No description
Set the connection-creation callback.
No description
Details
at line 20
__construct(string $name, callable $callback, array $option)
No description
at line 28
string
getName()
No description
at line 40
Config
setName(string $name)
Set the pool name.
Boot-only. The value persists on the worker-lifetime SimplePool config and is captured by the Pool on its first resolution. Per-request use races across coroutines.
at line 47
callable
getCallback()
No description
at line 59
Config
setCallback(callable $callback)
Set the connection-creation callback.
Boot-only. The callback persists on the worker-lifetime SimplePool config and is captured by the Pool on its first resolution. Per-request use races across coroutines.
at line 69
array
getOption()
No description
at line 83
Config
setOption(array $option)
Set the pool option array.
Boot-only. The value persists on the worker-lifetime SimplePool config and is captured by the Pool on its first resolution. Per-request use races across coroutines.