Add two missing helper functions to Task

This commit is contained in:
Aria 2023-05-06 03:49:24 -07:00
parent ec58268a25
commit 6cc07c0b72
2 changed files with 9 additions and 1 deletions

View file

@ -12,7 +12,7 @@ plugins {
id 'maven-publish'
}
version = "1.1.5"
version = "1.1.6"
group = "dev.zontreck"
archivesBaseName = "LibAC"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)

View file

@ -37,6 +37,14 @@ public abstract class Task implements Runnable
ConsolePrompt.console.printf("\r"+TASK_NAME+"\t\t["+token.status+"]\n");
}
}
public void setSuccess()
{
token.completed(CHECK);
}
public void setFail()
{
token.completed(FAIL);
}
public class SpinnerTask implements Runnable
{
public final TaskCompletionToken token;