Convenience wrapper for promises represented by Promise Adapter
- Full name:
\GraphQL\Executor\Promise\Promise
public \GraphQL\Executor\Promise\Adapter\SyncPromise|\React\Promise\Promise $adoptedPromise
private \GraphQL\Executor\Promise\PromiseAdapter $adapter
public __construct(mixed $adoptedPromise, \GraphQL\Executor\Promise\PromiseAdapter $adapter): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$adoptedPromise |
mixed | |
$adapter |
\GraphQL\Executor\Promise\PromiseAdapter |
public then(?callable $onFulfilled = null, ?callable $onRejected = null): \GraphQL\Executor\Promise\Promise
Parameters:
Parameter | Type | Description |
---|---|---|
$onFulfilled |
?callable | |
$onRejected |
?callable |