Documentation

AwaitChild extends PromiseState
in package

Tags
template

ParentT

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

Constants

Properties

$await

protected Await<string|int, ParentT> $await

Methods

__construct()

public __construct(Await $await) : mixed
Parameters
$await : Await
Tags
phpstan-param

Await<ParentT> $await

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

Search results