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

AmpFutureAdapter::createFulfilledpublicWC 1.0

Метод класса: AmpFutureAdapter{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$AmpFutureAdapter = new AmpFutureAdapter();
$AmpFutureAdapter->createFulfilled( $value ): Promise;
$value
.
По умолчанию: null

Код AmpFutureAdapter::createFulfilled() WC 11.0.1

public function createFulfilled($value = null): Promise
{
    if ($value instanceof Promise) {
        return $value;
    }

    if ($value instanceof Future) {
        return new Promise($value, $this);
    }

    return new Promise(Future::complete($value), $this);
}