Documentation

PromiseState
in package

Table of Contents

STATE_PENDING  = 0
STATE_REJECTED  = 2
STATE_RESOLVED  = 1
$cancelled  : bool
$rejected  : Throwable
$resolved  : mixed
$state  : int
reject()  : void
resolve()  : void

Constants

Properties

Methods

reject()

public reject(Throwable $value) : void
Parameters
$value : Throwable
Return values
void

resolve()

public resolve(mixed $value) : void
Parameters
$value : mixed
Return values
void

Search results