PHP Класс Kahlan\Code\Code

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
run ( Callable $callable, integer $timeout ) : mixed Executes a callable until a timeout is reached or the callable returns true.
spin ( Callable $callable, integer $timeout, $delay = 100000 ) : mixed Executes a callable in a loop until a timeout is reached or the callable returns true.

Описание методов

run() публичный статический Метод

Executes a callable until a timeout is reached or the callable returns true.
public static run ( Callable $callable, integer $timeout ) : mixed
$callable Callable The callable to execute.
$timeout integer The timeout value.
Результат mixed

spin() публичный статический Метод

Executes a callable in a loop until a timeout is reached or the callable returns true.
public static spin ( Callable $callable, integer $timeout, $delay = 100000 ) : mixed
$callable Callable The callable to execute.
$timeout integer The timeout value.
Результат mixed