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

SyncPromiseAdapter::onWaitprotectedWC 1.0

Execute while running promise completion.

Method of the class: SyncPromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->onWait( $promise ): void;
$promise(Promise) (required)
.

SyncPromiseAdapter::onWait() code WC 10.9.1

protected function onWait(Promise $promise): void {}