-
template
-
Table of Contents
-
STATE_PENDING
= 0
-
STATE_REJECTED
= 2
-
STATE_RESOLVED
= 1
-
$await
: Await<string|int, ParentT>
-
$cancelled
: bool
-
$rejected
: Throwable
-
$resolved
: mixed
-
$state
: int
-
__construct()
: mixed
-
reject()
: void
-
resolve()
: void
STATE_PENDING
public
mixed
STATE_PENDING
= 0
STATE_REJECTED
public
mixed
STATE_REJECTED
= 2
STATE_RESOLVED
public
mixed
STATE_RESOLVED
= 1
$await
protected
Await<string|int, ParentT>
$await
$cancelled
protected
bool
$cancelled
= false
$rejected
protected
Throwable
$rejected
$resolved
protected
mixed
$resolved
$state
protected
int
$state
= self::STATE_PENDING
__construct()
public
__construct(Await $await) : mixed
Parameters
-
$await
: Await
-
-
phpstan-param
-
Return values
mixed
—
reject()
public
reject(Throwable $value) : void
Parameters
-
$value
: Throwable
-
Return values
void
—
resolve()
public
resolve([mixed $value = null ]) : void
Parameters
-
$value
: mixed
= null
-
Return values
void
—