fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.Scheduler Class Reference

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.
 

Detailed Description

A general-purpose task scheduler.

Member Function Documentation

static SchedulerTask fCraft.Scheduler.NewBackgroundTask ( [NotNull] SchedulerCallback  callback)
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.

Parameters
callbackMethod to call when the task is triggered.
Returns
Newly created SchedulerTask object.
static SchedulerTask fCraft.Scheduler.NewBackgroundTask ( [NotNull] SchedulerCallback  callback,
[CanBeNull] object  userState 
)
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.

Parameters
callbackMethod to call when the task is triggered.
userStateParameter to pass to the method.
Returns
Newly created SchedulerTask object.
static SchedulerTask fCraft.Scheduler.NewTask ( [NotNull] SchedulerCallback  callback)
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.

Parameters
callbackMethod to call when the task is triggered.
Returns
Newly created SchedulerTask object.
static SchedulerTask fCraft.Scheduler.NewTask ( [NotNull] SchedulerCallback  callback,
[CanBeNull] object  userState 
)
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.

Parameters
callbackMethod to call when the task is triggered.
userStateParameter to pass to the method.
Returns
Newly created SchedulerTask object.

The documentation for this class was generated from the following file: