[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch




/vendor/guzzlehttp/promises/src/ -> Coroutine.php (summary)

Creates a promise that is resolved using a generator that yields values or promises (somewhat similar to C#'s async keyword). When called, the Coroutine::of method will start an instance of the generator and returns a promise that is fulfilled with its final yielded value.

File Size: 169 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 12 functions


Functions that are not part of a class:

__construct(callable $generatorFn)   X-Ref

of(callable $generatorFn)   X-Ref
Create a new coroutine.

return: self

then(callable $onFulfilled = null,callable $onRejected = null)   X-Ref
No description

otherwise(callable $onRejected)   X-Ref
No description

wait($unwrap = true)   X-Ref
No description

getState()   X-Ref
No description

resolve($value)   X-Ref
No description

reject($reason)   X-Ref
No description

cancel()   X-Ref
No description

nextCoroutine($yielded)   X-Ref
No description

_handleSuccess($value)   X-Ref

_handleFailure($reason)   X-Ref

Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1