Promise
Methods
all()
php
public static function all(array $promises) : \pocketmine\promise\PromiseReturns a promise that will resolve only once all the Promises in $promises have resolved. The resolution value of the returned promise will be an array containing the resolution values of each Promises in $promises indexed by the respective Promises' array keys.
isResolved()
php
public function isResolved() : boolonCompletion()
php
public function onCompletion(\Closure $onSuccess, \Closure $onFailure) : void