메소드 |
설명 |
|
all ( Kraken\Promise\PromiseInterface[] | mixed[] $promisesOrValues ) : Kraken\Promise\PromiseInterface |
Return Promise that will resolve only once all the items in $promisesOrValues have resolved. |
|
any ( Kraken\Promise\PromiseInterface[] | mixed[] $promisesOrValues ) : Kraken\Promise\PromiseInterface |
Return a promise that will resolve when any one of the items in $promisesOrValues resolves. |
|
doCancel ( Kraken\Promise\PromiseInterface | mixed $promiseOrValue = null ) : Kraken\Promise\PromiseInterface |
Cancel Promise or value. |
|
doReject ( Kraken\Promise\PromiseInterface | mixed $promiseOrValue = null ) : Kraken\Promise\PromiseInterface |
Reject Promise or value. |
|
doResolve ( Kraken\Promise\PromiseInterface | mixed $promiseOrValue = null ) : Kraken\Promise\PromiseInterface |
Resolve Promise or value. |
|
map ( Kraken\Promise\PromiseInterface[] | mixed[] $promisesOrValues, callable $mapFunc ) : Kraken\Promise\PromiseInterface |
Map promises and/or values using specified $mapFunc. |
|
race ( Kraken\Promise\PromiseInterface[] | mixed[] $promisesOrValues ) : Kraken\Promise\PromiseInterface |
Initiate a competitive race that allows one winner. |
|
reduce ( Kraken\Promise\PromiseInterface[] | mixed[] $promisesOrValues, callable $reduceFunc, Kraken\Promise\PromiseInterface | mixed | null $initialValue = null ) : Kraken\Promise\PromiseInterface |
Reduce Promises and/or values using $reduceFunc with $initialValue being Promise or primitive value. |
|
some ( Kraken\Promise\PromiseInterface[] | mixed[] $promisesOrValues, integer $howMany ) : Kraken\Promise\PromiseInterface |
Return Promise that will resolve when $howMany of the supplied items in $promisesOrValues resolve. |
|