You are here

public static function DeferredUtility::promiseAdapter in GraphQL 8.4

Return the singleton promise adapter.

Return value

\GraphQL\Executor\Promise\Adapter\SyncPromiseAdapter The singleton promise adapter.

1 call to DeferredUtility::promiseAdapter()
DeferredUtility::waitAll in src/GraphQL/Utility/DeferredUtility.php
Ensures that all promises in the given array are resolved.

File

src/GraphQL/Utility/DeferredUtility.php, line 27

Class

DeferredUtility
Helper class for dealing with deferred promises.

Namespace

Drupal\graphql\GraphQL\Utility

Code

public static function promiseAdapter() {
  if (!isset(static::$promiseAdapter)) {
    static::$promiseAdapter = new SyncPromiseAdapter();
  }
  return static::$promiseAdapter;
}