Copied!

A promise that has been fulfilled.

Thenning off of this promise will invoke the onFulfilled callback immediately and ignore other callbacks.

  • final
CloneableInstantiable
Constants
public GuzzleHttp\Promise\PromiseInterface::FULFILLED = 'fulfilled'
public GuzzleHttp\Promise\PromiseInterface::PENDING = 'pending'
public GuzzleHttp\Promise\PromiseInterface::REJECTED = 'rejected'
Methods
public __construct( $value)
 
  • param mixed $value
public cancel() : void
public getState() : string
public otherwise(callable $onRejected) : GuzzleHttp\Promise\PromiseInterface
public reject( $reason) : void
public resolve( $value) : void
public then(?callable $onFulfilled = NULL, ?callable $onRejected = NULL) : GuzzleHttp\Promise\PromiseInterface
public wait(bool $unwrap = true)
Properties
private $value = NULL
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration