![]() |
fCraft
0.638
Custom Minecraft Server
|
A general-purpose task scheduler. More...
Static Public Member Functions | |
| static SchedulerTask | NewTask ([NotNull] SchedulerCallback callback) |
| Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute. | |
| static SchedulerTask | NewBackgroundTask ([NotNull] SchedulerCallback callback) |
| Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive. | |
| static SchedulerTask | NewTask ([NotNull] SchedulerCallback callback,[CanBeNull] object userState) |
| Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute. | |
| static SchedulerTask | NewBackgroundTask ([NotNull] SchedulerCallback callback,[CanBeNull] object userState) |
| Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive. | |
A general-purpose task scheduler.
|
static |
Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive.
| callback | Method to call when the task is triggered. |
|
static |
Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive.
| callback | Method to call when the task is triggered. |
| userState | Parameter to pass to the method. |
|
static |
Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute.
| callback | Method to call when the task is triggered. |
|
static |
Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute.
| callback | Method to call when the task is triggered. |
| userState | Parameter to pass to the method. |