Package net.ME1312.Galaxi.Library
Class AsyncConsolidator
java.lang.Object
net.ME1312.Galaxi.Library.AsyncConsolidator
Asynchronous Task Consolidator Class
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AsyncConsolidator
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
-