PHP Interface Kraken\Promise\DeferredInterface

Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
cancel ( Erro\Error | Exceptio\Exception | string | null $reason = null ) : Kraken\Promise\PromiseInterface Cancel promise with specified reason.
getPromise ( ) : Kraken\Promise\PromiseInterface Return promise representing return value of deferred operation.
reject ( Erro\Error | Exceptio\Exception | string | null $reason = null ) : Kraken\Promise\PromiseInterface Reject promise with specified reason.
resolve ( mixed | null $value = null ) : Kraken\Promise\PromiseInterface Resolve promise with specified value.

Method Details

cancel() public méthode

Cancel promise with specified reason.
public cancel ( Erro\Error | Exceptio\Exception | string | null $reason = null ) : Kraken\Promise\PromiseInterface
$reason Erro\Error | Exceptio\Exception | string | null
Résultat Kraken\Promise\PromiseInterface

getPromise() public méthode

Return promise representing return value of deferred operation.
public getPromise ( ) : Kraken\Promise\PromiseInterface
Résultat Kraken\Promise\PromiseInterface

reject() public méthode

Reject promise with specified reason.
public reject ( Erro\Error | Exceptio\Exception | string | null $reason = null ) : Kraken\Promise\PromiseInterface
$reason Erro\Error | Exceptio\Exception | string | null
Résultat Kraken\Promise\PromiseInterface

resolve() public méthode

Resolve promise with specified value.
public resolve ( mixed | null $value = null ) : Kraken\Promise\PromiseInterface
$value mixed | null
Résultat Kraken\Promise\PromiseInterface