[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
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 |
__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 Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |