110111112113114115116117118119120
elapsed ++; if (elapsed > timeout) { timer.cancel(); elapsed = 0; if (handler != null) { handler.onFailure(new TimeoutException("The compile operation exceeded the allowed " + timeout + " seconds timeout value.")); } } else { checkResponse(); } }