Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise

PromiseAdapter::convertThenablepublicWC 1.0

Converts thenable of the underlying platform into Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise\Promise instance.

Method of the class: PromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PromiseAdapter = new PromiseAdapter();
$PromiseAdapter->convertThenable( $thenable ): Promise;
$thenable(mixed) (required)
.

PromiseAdapter::convertThenable() code WC 10.8.1

public function convertThenable($thenable): Promise;