Adjusted ActionQueue killing logic

This commit is contained in:
bigguy345 committed 2025-07-03 18:07:17 +03:00
1 parent 049253f1fd
commit efe7261681
1 file changed
+9 -1
@@ -36,11 +36,19 @@ public interface IActionQueue {
IActionQueue killWhenEmpty(boolean killWhenEmpty);
/**
* @param ticks to set killAfterTicks
* @param ticks to kill queue after when queue has no active tasks
* If an IAction is scheduled during the kill process, process is aborted
* @return
*/
IActionQueue killAfter(int ticks);
boolean isKilled();
/**
* @return kills queue and removes it from IActionManager immediately
*/
IActionQueue kill();
IAction schedule(IAction action);
void schedule(IAction... actions);