PHP 클래스 Amp\Internal\WhenQueue

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

공개 메소드들

메소드 설명
__construct ( callable $callback = null )
__invoke ( Throwable | null $exception, mixed $value ) Calls each callback in the queue, passing the provided values to the function.
push ( callable $callback ) Unrolls instances of self to avoid blowing up the call stack on resolution.

메소드 상세

__construct() 공개 메소드

public __construct ( callable $callback = null )
$callback callable Initial callback to add to queue.

__invoke() 공개 메소드

Calls each callback in the queue, passing the provided values to the function.
public __invoke ( Throwable | null $exception, mixed $value )
$exception Throwable | null
$value mixed

push() 공개 메소드

Unrolls instances of self to avoid blowing up the call stack on resolution.
public push ( callable $callback )
$callback callable