function FulfilledPromise::finally
Overrides PromiseInterface::finally
1 call to FulfilledPromise::finally()
- FulfilledPromise::always in vendor/
react/ promise/ src/ Internal/ FulfilledPromise.php
File
-
vendor/
react/ promise/ src/ Internal/ FulfilledPromise.php, line 59
Class
- FulfilledPromise
- @internal
Namespace
React\Promise\InternalCode
public function finally(callable $onFulfilledOrRejected) : PromiseInterface {
return $this->then(function ($value) use ($onFulfilledOrRejected) : PromiseInterface {
return resolve($onFulfilledOrRejected())->then(function () use ($value) {
return $value;
});
});
}