protected __construct ( callable $cb, double $timeout = null, object $context = null ) : |
||
$cb | callable | |
$timeout | double | |
$context | object | |
Результат |
protected function __construct($cb, $timeout = null, $context = null)
{
$this->cb = $cb;
$this->context = $context;
if ($timeout !== null) {
$this->setTimeout($timeout);
}
}