Class AbstractFuture.Cancellation

  • Enclosing class:
    AbstractFuture<V>

    private static final class AbstractFuture.Cancellation
    extends java.lang.Object
    A special value to represent cancellation and the 'wasInterrupted' bit.
    • Field Detail

      • wasInterrupted

        final boolean wasInterrupted
      • cause

        @CheckForNull
        final java.lang.Throwable cause
    • Constructor Detail

      • Cancellation

        Cancellation​(boolean wasInterrupted,
                     @CheckForNull
                     java.lang.Throwable cause)