Skip to content

Latest commit

 

History

History
105 lines (37 loc) · 1.02 KB

File metadata and controls

105 lines (37 loc) · 1.02 KB

Promise

Convenience wrapper for promises represented by Promise Adapter

  • Full name: \GraphQL\Executor\Promise\Promise

Properties

adoptedPromise

public \GraphQL\Executor\Promise\Adapter\SyncPromise|\React\Promise\Promise $adoptedPromise

adapter

private \GraphQL\Executor\Promise\PromiseAdapter $adapter

Methods

__construct

public __construct(mixed $adoptedPromise, \GraphQL\Executor\Promise\PromiseAdapter $adapter): mixed

Parameters:

Parameter Type Description
$adoptedPromise mixed
$adapter \GraphQL\Executor\Promise\PromiseAdapter

then

public then(?callable $onFulfilled = null, ?callable $onRejected = null): \GraphQL\Executor\Promise\Promise

Parameters:

Parameter Type Description
$onFulfilled ?callable
$onRejected ?callable