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

ReactPromiseAdapter::convertThenablepublicWC 1.0

Method of the class: ReactPromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

ReactPromiseAdapter::convertThenable() code WC 10.9.4

public function convertThenable($thenable): Promise
{
    return new Promise($thenable, $this);
}