PHP Trait Amp\Internal\Placeholder

Show file Open project: amphp/amp

Public Methods

Method Description
when ( callable $onResolved )

Private Methods

Method Description
fail ( Throwable $reason )
resolve ( mixed $value = null )

Method Details

when() public method

See also: Interop\Async\Promise::when()
public when ( callable $onResolved )
$onResolved callable