Interface TimerScheduler.Cancellable

Enclosing interface:
TimerScheduler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TimerScheduler.Cancellable
A handle to a task scheduled with TimerScheduler.schedule(Duration, Runnable).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the task.
  • Method Details

    • cancel

      void cancel()
      Cancels the task. Cancellation is best effort, so an already dispatched task may still run.