public final class DefaultTask extends Task
Constructor and Description |
---|
DefaultTask(int threads) |
Modifier and Type | Method and Description |
---|---|
protected void |
async(GRunnable task)
Implementation of running a runnable async
|
protected void |
scheduleAsync(GRunnable task,
sh.okx.timeapi.TimeAPI time,
boolean repeat)
Implementation of scheduling an async runnable
|
void |
shutdown()
Shutdown anything that needs to be shutdown
|
protected void async(GRunnable task)
Task
protected void scheduleAsync(GRunnable task, sh.okx.timeapi.TimeAPI time, boolean repeat)
Task
scheduleAsync
in class Task
task
- Task to runtime
- Time till it runs (or interval)repeat
- Whether the task should be on loop, or only run once.