[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: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.2.4 (0.6.2.4)

Syntax

   
 C# 
public static SchedulerTask NewTask(
	SchedulerCallback callback
)

Parameters

callback
SchedulerCallback
Method to call when the task is triggered.

Return Value

Newly created SchedulerTask object.

See Also