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

SyncPromiseAdapter::createFulfilledpublicWC 1.0

Method of the class: SyncPromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

SyncPromiseAdapter::createFulfilled() code WC 10.9.1

public function createFulfilled($value = null): Promise
{
    $syncPromise = new SyncPromise();

    return new Promise($syncPromise->resolve($value), $this);
}