PHP Class Amp\Success

Inheritance: implements amp\Promise
Datei anzeigen Open project: amphp/amp

Public Methods

Method Description
__construct ( mixed $value = null )
subscribe ( callable $onNext )
when ( callable $onResolved )

Method Details

__construct() public method

public __construct ( mixed $value = null )
$value mixed Anything other than an Promise object.

subscribe() public method

public subscribe ( callable $onNext )
$onNext callable

when() public method

public when ( callable $onResolved )
$onResolved callable