Add two missing helper functions to Task
This commit is contained in:
parent
ec58268a25
commit
6cc07c0b72
2 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue