RepoResourceGeneratorPromise
in package
implements
PromiseInterface
Uses
PromiseTrait
Description of ResponsePromise
Tags
Table of Contents
Interfaces
- PromiseInterface
Properties
- $promise : PromiseInterface
Methods
- __construct() : mixed
- cancel() : void
- getState() : string
- otherwise() : PromiseInterface
- reject() : void
- resolve() : void
- then() : PromiseInterface
- wait() : Generator<string|int, RepoResource>|null
Properties
$promise
private
PromiseInterface
$promise
Methods
__construct()
public
__construct(PromiseInterface $promise) : mixed
Parameters
- $promise : PromiseInterface
cancel()
public
cancel() : void
getState()
public
getState() : string
Return values
stringotherwise()
public
otherwise(callable $onRejected) : PromiseInterface
Parameters
- $onRejected : callable
Return values
PromiseInterfacereject()
public
reject(mixed $reason) : void
Parameters
- $reason : mixed
resolve()
public
resolve(mixed $value) : void
Parameters
- $value : mixed
then()
public
then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : PromiseInterface
Parameters
- $onFulfilled : callable|null = null
- $onRejected : callable|null = null
Return values
PromiseInterfacewait()
public
wait([bool $unwrap = true ]) : Generator<string|int, RepoResource>|null
Parameters
- $unwrap : bool = true