Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise

PromiseAdapter::allpublicWC 1.0

Given an iterable of promises (or values), returns a promise that is fulfilled when all the items in the iterable are fulfilled.

Method of the class: PromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PromiseAdapter = new PromiseAdapter();
$PromiseAdapter->all( $promisesOrValues ): Promise;
$promisesOrValues(iterable<Promise|mixed>) (required)
.

PromiseAdapter::all() code WC 10.8.1

public function all(iterable $promisesOrValues): Promise;