Class AsyncConsolidator

java.lang.Object
net.ME1312.Galaxi.Library.AsyncConsolidator

public class AsyncConsolidator extends Object
Asynchronous Task Consolidator Class
  • Constructor Details

    • AsyncConsolidator

      public AsyncConsolidator(Runnable action)
      Create a Asynchronous Task Consolidator
      Parameters:
      action - Resulting Action
  • Method Details

    • reserve

      public void reserve()
      Call this before running each task
    • reserve

      public void reserve(int amount)
      Call this before running multiple tasks
      Parameters:
      amount - Amount of reservations
    • release

      public void release()
      Call this after running each task