src/Internal/ControlUtils.php
public static function reverse($yieldable)
    {
        try {
            $result = (yield $yieldable);
        } catch (\RuntimeException $e) {
            yield CoInterface::RETURN_WITH => $e;
        }
        throw new ControlException($result);
    }
public static function reverse($yieldable)
    {
        try {
            $result = (yield $yieldable);
        } catch (\RuntimeException $e) {
            yield CoInterface::RETURN_WITH => $e;
        }
        throw new ControlException($result);
    }
public static function reverse ( $ yieldable ) { try { $ result = ( yield $ yieldable ) ; } catch ( \ RuntimeException $ e ) { yield CoInterface :: RETURN_WITH => $ e ; } throw new ControlException ( $ result ) ; }
Handle success as ControlException, failure as resolved.
@param  mixed      $yieldable
@return \Generator
Handle success as ControlException failure as resolved .