Commits

grainednoise  committed 1ab0b5e

Cleanup

  • Participants
  • Parent commits cafcc1f

Comments (0)

Files changed (1)

File src/main/java/org/grainednoise/deferred/util/SimpleDeferredExecutor.java

 		this.executor = executor;
 	}
 
-	
-//	@Override
-//	public <R, S> R executeAndWait(Dfunc0<R, S> func) {
-//		ExecutionState<R, S> state = func.tryCalculateNow();
-//		
-//		if (state.isDone()) {
-//			return state.get();
-//		}
-//		
-//		return func.calculateLater(this, state);
-//	}
-//
-//	@Override
-//	public <R, S> Waiter<R>  executeAsync(final Dfunc0<R, S> func) {
-//		ExecutionState<R, S> state;
-//		
-//		try {
-//			state = func.tryCalculateNow();
-//				
-//		}
-//		catch (Throwable e) {
-//			return Waiters.withError(e);
-//		}
-//		
-//		if (state.isDone()) {
-//			return Waiters.dataReady(state.get());
-//		}
-//		
-//		return continueAsync(func, state);
-//	}
-//
-//	
-//	@Override
-//	public <R, S> Waiter<R> continueAsync(final Dfunc0<R, S> func, final ExecutionState<R, S> state) {
-//		final DefaultWaiter<R> waiter = new DefaultWaiter<R>();
-//		executor.execute(new Runnable() {
-//			
-//			@Override
-//			public void run() {
-//				try {
-//					R value = func.calculateLater(SimpleDeferredExecutor.this, state);
-//					waiter.setValue(value);
-//					
-//				}
-//				catch (Throwable e) {
-//					waiter.setError(e);
-//				}
-//				
-//			}
-//		});
-//		
-//		
-//		return waiter;
-//	}
 
 	
 	@Override