getReturn()
/**
* This method is used to get the return when catch or then of the promise is resolved or rejected.
*/
public function getReturn(): mixed;
Unlike getResult()
, this method will return a type of return from the callback that the promise keeps in two states that have been fulfilled
and rejected
.
Last updated