Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise\Adapter
AmpFutureAdapter::createFulfilled
Method of the class: AmpFutureAdapter{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AmpFutureAdapter = new AmpFutureAdapter(); $AmpFutureAdapter->createFulfilled( $value ): Promise;
- $value
- .
Default:null
AmpFutureAdapter::createFulfilled() AmpFutureAdapter::createFulfilled code WC 10.9.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);
}