src/Internal/YieldableUtils.php
public static function safePromise(PromiseInterface $promise)
    {
        return $promise->then(null, function ($value) {
            if (TypeUtils::isFatalThrowable($value)) {
                throw $value;
            }
            return $value;
        });
    }
public static function safePromise(PromiseInterface $promise)
    {
        return $promise->then(null, function ($value) {
            if (TypeUtils::isFatalThrowable($value)) {
                throw $value;
            }
            return $value;
        });
    }
public static function safePromise ( PromiseInterface $ promise ) { return $ promise -> then ( null , function ( $ value ) { if ( TypeUtils :: isFatalThrowable ( $ value ) ) { throw $ value ; } return $ value ; } ) ; }
Return Promise that absorbs rejects, excluding fatal Throwable.
@param  PromiseInterface $promise
@return PromiseInterface
Return Promise that absorbs rejects excluding fatal Throwable .