Open Journal Systems  3.3.0
php-http/promise/src/Promise.php
1 <?php
2 
3 namespace Http\Promise;
4 
16 interface Promise
17 {
21  const PENDING = 'pending';
22 
26  const FULFILLED = 'fulfilled';
27 
31  const REJECTED = 'rejected';
32 
44  public function then(callable $onFulfilled = null, callable $onRejected = null);
45 
51  public function getState();
52 
68  public function wait($unwrap = true);
69 }
Http\Promise\Promise\wait
wait($unwrap=true)
Http\Promise\Promise\then
then(callable $onFulfilled=null, callable $onRejected=null)
Http\Promise\Promise\getState
getState()
Http\Promise\Promise\PENDING
const PENDING
Definition: php-http/promise/src/Promise.php:21
Http\Promise\Promise
Definition: php-http/promise/src/Promise.php:16
Http\Promise\Promise\FULFILLED
const FULFILLED
Definition: php-http/promise/src/Promise.php:26
Http\Promise
Definition: php-http/promise/src/FulfilledPromise.php:3
Http\Promise\Promise\REJECTED
const REJECTED
Definition: php-http/promise/src/Promise.php:31