Class CancelledAsyncFuture<T>

  • All Implemented Interfaces:
    AsyncFuture<T>, AsyncPromise<T>, java.util.concurrent.CompletionStage<T>, java.util.concurrent.Future<T>

    public final class CancelledAsyncFuture<T>
    extends FailedAsyncFuture<T>
    • Constructor Detail

      • CancelledAsyncFuture

        public CancelledAsyncFuture()
    • Method Detail

      • getInstance

        public static <T> AsyncPromise<T> getInstance()
      • isCancelled

        public boolean isCancelled()
        Always returns true.
        Specified by:
        isCancelled in interface java.util.concurrent.Future<T>
        Overrides:
        isCancelled in class FailedAsyncFuture<T>
        Returns:
        true this task is cancelled