Code example for ConditionVariable

0
			this.eventHandled.open();
		} 
 
		public WebFuture(WebView webView) {
			this.webView = webView;
			eventHandled = new ConditionVariable();
			result = null;
		} 
 
		public synchronized void setResult(String result) {
			this.result = result;
			this.complete();
		} 
 
		public synchronized String getResult() {
			return this.result;
		} 
 
		public boolean cancel(boolean mayInterruptIfRunning) {
			return false; 
		}