Class Cleanups

java.lang.Object
org.jsignal.rx.Cleanups
All Implemented Interfaces:
Runnable

public class Cleanups extends Object implements Runnable
  • Field Details

  • Constructor Details

    • Cleanups

      public Cleanups()
    • Cleanups

      public Cleanups(Queue<Runnable> queue)
  • Method Details

    • getQueue

      public Queue<Runnable> getQueue()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • drain

      public void drain()
    • create

      public static Cleanups create()
    • provide

      public static void provide(Cleanups cleanups, Runnable runnable)
    • provide

      public static <T> T provide(Cleanups cleanups, Supplier<T> supplier)
    • onCleanup

      public static void onCleanup(Runnable cleanup)