SDK for PHP V3

Is
in package

FinalYes
Tags
deprecated

Is will be removed in guzzlehttp/promises:4.0. Use State instead.

Table of Contents

Methods

fulfilled()  : bool
Returns true if a promise is fulfilled.
pending()  : bool
Returns true if a promise is pending.
rejected()  : bool
Returns true if a promise is rejected.
settled()  : bool
Returns true if a promise is fulfilled or rejected.

Methods

fulfilled()

Returns true if a promise is fulfilled.

public static fulfilled(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Tags
deprecated

Is::fulfilled() will be removed in guzzlehttp/promises:4.0. Use State::isFulfilled() instead.

Return values
bool

pending()

Returns true if a promise is pending.

public static pending(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Tags
deprecated

Is::pending() will be removed in guzzlehttp/promises:4.0. Use State::isPending() instead.

Return values
bool

rejected()

Returns true if a promise is rejected.

public static rejected(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Tags
deprecated

Is::rejected() will be removed in guzzlehttp/promises:4.0. Use State::isRejected() instead.

Return values
bool

settled()

Returns true if a promise is fulfilled or rejected.

public static settled(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Tags
deprecated

Is::settled() will be removed in guzzlehttp/promises:4.0. Use State::isSettled() instead.

Return values
bool
<-- modeled_exceptions -->
On this page