Interface CancellableScheduler

All Known Subinterfaces:
BiLateScheduler<A,​B>, LateScheduler<A>
All Known Implementing Classes:
AsyncBiLateScheduler, AsyncLateScheduler, FixedBiLateScheduler, FixedLateScheduler

public interface CancellableScheduler
Karma cancellable scheduler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get if the scheduler is cancelled
    void
    Set the scheduler as cancelled
    whenCancelled​(Runnable paramRunnable)
    Set the action to perform when the scheduler is cancelled
  • Method Details

    • whenCancelled

      CancellableScheduler whenCancelled(Runnable paramRunnable)
      Set the action to perform when the scheduler is cancelled
      Parameters:
      paramRunnable - the action to perform
      Returns:
      this instance
    • isCancelled

      boolean isCancelled()
      Get if the scheduler is cancelled
      Returns:
      if the scheduler is cancelled
    • setCancelled

      void setCancelled()
      Set the scheduler as cancelled