PHP 클래스 Kahlan\Code\Code

파일 보기 프로젝트 열기: crysalead/kahlan 1 사용 예제들

공개 메소드들

메소드 설명
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