Starts a new thread task.

Namespace:  Gallio.Framework
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public static ThreadTask StartThreadTask(
	string name,
	Action action
)
Visual Basic (Declaration)
Public Shared Function StartThreadTask ( _
	name As String, _
	action As Action _
) As ThreadTask

Parameters

name
Type: System..::.String
The name of the task, or null to create a new name based on the method associated with the action.
action
Type: Gallio.Common..::.Action
The action to perform.

Return Value

The new thread task.

Remarks

There is no need to call WatchTask(Task) on the returned task.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if action is null.

See Also