Cloneable
Final
Instantiable
Methods |
public
static
exceptionFor
(
$reason
) Create an exception for a rejected promise value.
|
public
static
iterFor
(
$value
) Returns an iterator for the given value.
|
public
static
promiseFor
(
$value
) Creates a promise for a value if the value is not a promise. |
public
static
rejectionFor
(
$reason
) Creates a rejected promise for a reason if the reason is not a promise. If the provided reason is a promise, then it is returned as-is. |
Methods |
public
static
exceptionFor
(
$reason
) Create an exception for a rejected promise value.
|
public
static
iterFor
(
$value
) Returns an iterator for the given value.
|
public
static
promiseFor
(
$value
) Creates a promise for a value if the value is not a promise. |
public
static
rejectionFor
(
$reason
) Creates a rejected promise for a reason if the reason is not a promise. If the provided reason is a promise, then it is returned as-is. |