Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise\Adapter

AmpFutureAdapter::createRejectedpublicWC 1.0

Method of the class: AmpFutureAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$AmpFutureAdapter = new AmpFutureAdapter();
$AmpFutureAdapter->createRejected( $reason ): Promise;
$reason(Throwable) (required)
.

AmpFutureAdapter::createRejected() code WC 10.9.1

public function createRejected(\Throwable $reason): Promise
{
    return new Promise(Future::error($reason), $this);
}