feature(task): Implement pause, resume and cancel

Use as `pauseTask(taskName)`. They return boolean values to tell the developer if a timed task can be paused/resumed/cancelled properly.
A little bit of testing shows that pausing and then resuming may execute the task multiple times.
This commit is contained in:
Yazawazi
2022-05-08 21:07:37 +08:00
committed by Melledy
parent 9fc4b916c8
commit 5d1f49579b
2 changed files with 35 additions and 3 deletions

View File

@@ -1,7 +1,5 @@
package emu.grasscutter.task;
import org.quartz.JobDataMap;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;