Module apdu4j.core
Package apdu4j.core

Class CancellationWaitingFuture<V>

  • Type Parameters:
    V -
    All Implemented Interfaces:
    Runnable, Future<V>, RunnableFuture<V>

    public class CancellationWaitingFuture<V>
    extends Object
    implements RunnableFuture<V>
    Like FutureTask, but get() waits for the callable to complete/return from interrupt.

    CancelledException from callable is passed as-is from get(), InterruptedException turned into CancellationException and other exceptions are wrapped in ExecutionException