Task Manager v1.0.1
This is the second public release of the library, it has been heavily tested but please feel free to report any issues found.
To add it as a…
Read MorePublished 02/20/2023 Updated 09/12/2023
Task Manager is an easy to use zero dependency task manager / task queue.
Add the following to your pom.xml as a maven dependency, or just download the latest release and import it with your IDE.
<dependency>
<groupId>com.konloch</groupId>
<artifactId>TaskManager</artifactId>
<version>1.0.1</version>
</dependency>
For a more in-depth example of how to use the TaskManager, view this test file.
//create and start a new task manager
TaskManager manager = new TaskManager();
manager.start();
//run the code after a delay of 1 second
manager.delay(1000, (task)->{
System.out.println("This will execute after a delay of 1 second");
});
//create a task that will run forever
manager.doForever((task)->
{
//stop the task depending on some condition
if(someCondition)
task.stop();
else
System.out.println("This will execute until stopped");
});
This is the second public release of the library, it has been heavily tested but please feel free to report any issues found.
To add it as a…
Read MoreThis is the first public release of the library, it has been heavily tested but please feel free to report any issues found.
To add it as a…
Read More