Code example for ConditionVariable

Methods: open

0
			return webView;
		} 
 
		public void complete() { 
			this.complete = true;
			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;