Class CancellableExecutor

java.lang.Object
org.bsc.async.executor.CancellableExecutor
All Implemented Interfaces:
Executor, AsyncGenerator.IsCancellable

public class CancellableExecutor extends Object implements Executor, AsyncGenerator.IsCancellable
Runs tasks on a borrowed Executor, which it never shuts down. Once cancelled it skips the tasks not started yet, so a future over one of them never completes.