Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise

PromiseAdapter::createFulfilled │ public │ WC 1.0

Creates a fulfilled Promise for a value if the value is not a promise.

Method of the class: PromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PromiseAdapter = new PromiseAdapter();
$PromiseAdapter->createFulfilled( $value ): Promise;
$value(mixed)
.
Default: null

PromiseAdapter::createFulfilled() code WC 11.1.2

public function createFulfilled($value = null): Promise;