Promise
AbstractYes
Table of Contents
Properties
- $id : string
Methods
- __construct() : mixed
- catch() : static
- getResult() : mixed
- getState() : State
- onWait() : mixed
- then() : static
- wait() : mixed
Properties
$id read-only
public
string
$id
Methods
__construct()
public
__construct(callable $job) : mixed
Parameters
- $job : callable
catch()
public
catch(callable $onRejected) : static
Parameters
- $onRejected : callable
Return values
staticgetResult()
public
getResult() : mixed
getState()
public
getState() : State
Return values
StateonWait()
public
abstract onWait() : mixed
then()
public
then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : static
Parameters
- $onFulfilled : callable|null = null
- $onRejected : callable|null = null
Return values
staticwait()
public
abstract wait() : mixed