Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise
Promise::then
Method of the class: Promise{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Promise = new Promise(); $Promise->then( ?callable $onFulfilled, ?callable $onRejected ): Promise;
- ?callable $onFulfilled
- .
Default:null - ?callable $onRejected
- .
Default:null
Promise::then() Promise::then code WC 10.8.1
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): Promise
{
return $this->adapter->then($this, $onFulfilled, $onRejected);
}