Class CancellableImpl

java.lang.Object
com.github.tonivade.purefun.concurrent.CancellableImpl
All Implemented Interfaces:
Cancellable

final class CancellableImpl extends Object implements Cancellable
  • Field Details

  • Constructor Details

    • CancellableImpl

      public CancellableImpl(Promise<?> promise)
  • Method Details

    • updateThread

      public void updateThread()
      Specified by:
      updateThread in interface Cancellable
    • cancel

      public void cancel(boolean mayThreadInterrupted)
      Specified by:
      cancel in interface Cancellable
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • interrupt

      private void interrupt()