public function blockUntilDone($appId, $scanId, $waitTime = 0, $sleepTime = 5, array $queryParams = [])
    {
        $response = $this->api->applications()->scans()->blockUntilDone($appId, $scanId, $waitTime, $sleepTime, $queryParams);

        return new ScanResponse($response);
    }
public function blockUntilDone($appId, $scanId, $waitTime = 0, $sleepTime = 5, array $queryParams = [])
    {
        $response = $this->api->applications()->scans()->blockUntilDone($appId, $scanId, $waitTime, $sleepTime, $queryParams);

        return new ScanResponse($response);
    }
public function blockUntilDone ( $ appId , $ scanId , $ waitTime = 0 , $ sleepTime = 5 , array $ queryParams = [ ] ) { $ response = $ this -> api -> applications ( ) -> scans ( ) -> blockUntilDone ( $ appId , $ scanId , $ waitTime , $ sleepTime , $ queryParams ) ; return new ScanResponse ( $ response ) ; }
Block until a scan is finished

@param int $appId
@param int $scanId
@param int $waitTime - Optional time to wait in seconds. Waits indefinitely if 0
@param int $sleepTime - Time to wait between scan completion checks
@param array $queryParams
@return ScanResponse
@throws \Exception if scan does not finish in time
Block until a scan is finished