Method | Description | |
---|---|---|
NewBackgroundTask ( 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.
|
|
NewBackgroundTask ( SchedulerCallback callback, 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.
|
|
NewTask ( 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.
|
|
NewTask ( SchedulerCallback callback, 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.
|
|
PrintTasks ( [ player ) : void |
Method | Description | |
---|---|---|
AddTask ( |
Schedules a given task for execution.
|
|
BackgroundLoop ( ) : void | ||
BeginShutdown ( ) : void | ||
EndShutdown ( ) : void | ||
FireEvent ( EventHandler |
||
MainLoop ( ) : void | ||
Start ( ) : void | ||
UpdateCache ( ) : void |
public static NewBackgroundTask ( SchedulerCallback callback ) : |
||
callback | SchedulerCallback | Method to call when the task is triggered. |
return |
public static NewBackgroundTask ( SchedulerCallback callback, object userState ) : |
||
callback | SchedulerCallback | Method to call when the task is triggered. |
userState | object | Parameter to pass to the method. |
return |
public static NewTask ( SchedulerCallback callback ) : |
||
callback | SchedulerCallback | Method to call when the task is triggered. |
return |
public static NewTask ( SchedulerCallback callback, object userState ) : |
||
callback | SchedulerCallback | Method to call when the task is triggered. |
userState | object | Parameter to pass to the method. |
return |