src/Expectation.php
protected function _spin($closure)
    {
        $timeout = $this->timeout();
        if ($timeout <= 0) {
            $closure();
        } else {
            Code::spin($closure, $timeout);
        }
    }
protected function _spin($closure)
    {
        $timeout = $this->timeout();
        if ($timeout <= 0) {
            $closure();
        } else {
            Code::spin($closure, $timeout);
        }
    }
protected function _spin ( $ closure ) { $ timeout = $ this -> timeout ( ) ; if ( $ timeout <= 0 ) { $ closure ( ) ; } else { Code :: spin ( $ closure , $ timeout ) ; } }
Runs the expectation.

@param Closure $closure The closure to run/spin.
Runs the expectation .