[This is preliminary documentation and is subject to change.]
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.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
public static SchedulerTask NewTask( SchedulerCallback callback, Object userState )
Parameters
- callback
- SchedulerCallback
Method to call when the task is triggered.
- userState
- Object
Parameter to pass to the method.