[This is preliminary documentation and is subject to change.]

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.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
[NotNullAttribute]
public static SchedulerTask NewBackgroundTask(
	SchedulerCallback callback,
	Object userState
)

Parameters

callback
SchedulerCallback
Method to call when the task is triggered.
userState
Object
Parameter to pass to the method.

Return Value

Newly created SchedulerTask object.

See Also