Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
React
Promise
Deferred
PHP Class React\Promise\Deferred
Inheritance:
implements
React\Promise\PromisorInterface
Show file
Open project: reactphp/promise
Class Usage Examples
Public Methods
Method
Description
__construct
(
callable
$canceller
= null )
promise
( )
reject
(
$reason
= null )
resolve
(
$value
= null )
Method Details
__construct()
public
method
public
__construct
(
callable
$canceller
= null )
$canceller
callable
promise()
public
method
public
promise
( )
reject()
public
method
public
reject
(
$reason
= null )
resolve()
public
method
public
resolve
(
$value
= null )