Documentation

CoroutineExecutor
in package
implements Runtime, ExecutorImplementation

Interfaces, Classes, Traits and Enums

Runtime
ExecutorImplementation

Table of Contents

$collector  : Collector|null
$contextValue  : mixed|null
$documentNode  : DocumentNode
$doResolve  : callable
$errors  : array<string|int, Error>
$fieldResolver  : callable
$operationName  : string|null
$pending  : int|null
$promiseAdapter  : PromiseAdapter
$queue  : SplQueue
$rawVariableValues  : mixed|null
$rootResult  : stdClass|null
$rootValue  : mixed|null
$schedule  : SplQueue
$schema  : Schema
$undefined  : object
$variableValues  : mixed|null
__construct()  : mixed
create()  : mixed
doExecute()  : Promise
Returns promise of {@link ExecutionResult}. Promise should always resolve, never reject.
completeValue()  : mixed
completeValueFast()  : bool
done()  : mixed
findFieldDefinition()  : mixed
finishExecute()  : ExecutionResult
isPromise()  : bool
mergeSelectionSets()  : mixed
resolveTypeSlow()  : Generator|ObjectType|Type|null
resultToArray()  : mixed
run()  : mixed
spawn()  : mixed

Properties

Methods

__construct()

public __construct(PromiseAdapter $promiseAdapter, Schema $schema, DocumentNode $documentNode, mixed $rootValue, mixed $contextValue, mixed $rawVariableValues, string|null $operationName, callable $fieldResolver) : mixed
Parameters
$promiseAdapter : PromiseAdapter
$schema : Schema
$documentNode : DocumentNode
$rootValue : mixed
$contextValue : mixed
$rawVariableValues : mixed
$operationName : string|null
$fieldResolver : callable
Return values
mixed

create()

public static create(PromiseAdapter $promiseAdapter, Schema $schema, DocumentNode $documentNode, mixed $rootValue, mixed $contextValue, mixed $variableValues, string|null $operationName, callable $fieldResolver) : mixed
Parameters
$promiseAdapter : PromiseAdapter
$schema : Schema
$documentNode : DocumentNode
$rootValue : mixed
$contextValue : mixed
$variableValues : mixed
$operationName : string|null
$fieldResolver : callable
Return values
mixed

doExecute()

Returns promise of {@link ExecutionResult}. Promise should always resolve, never reject.

public doExecute() : Promise
Return values
Promise

completeValue()

private completeValue(CoroutineContext $ctx, Type $type, mixed $value, array<string|int, string> $path, array<string|int, string>|null $nullFence) : mixed
Parameters
$ctx : CoroutineContext
$type : Type
$value : mixed
$path : array<string|int, string>
$nullFence : array<string|int, string>|null
Return values
mixed

completeValueFast()

private completeValueFast(CoroutineContext $ctx, Type $type, mixed $value, array<string|int, string> $path, mixed &$returnValue) : bool
Parameters
$ctx : CoroutineContext
$type : Type
$value : mixed
$path : array<string|int, string>
$returnValue : mixed
Return values
bool

findFieldDefinition()

private findFieldDefinition(CoroutineContext $ctx) : mixed
Parameters
$ctx : CoroutineContext
Return values
mixed

isPromise()

private isPromise(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

mergeSelectionSets()

private mergeSelectionSets(CoroutineContext $ctx) : mixed
Parameters
$ctx : CoroutineContext
Return values
mixed

resultToArray()

private static resultToArray(mixed $value[, mixed $emptyObjectAsStdClass = true ]) : mixed
Parameters
$value : mixed
$emptyObjectAsStdClass : mixed = true
Return values
mixed

spawn()

private spawn(CoroutineContext $ctx) : mixed
Parameters
$ctx : CoroutineContext
Return values
mixed

Search results