TplExtensions::Forget Method (Task^)

 

Consumes a task and doesn't do anything with it. Useful for fire-and-forget calls to asynchronous methods within asynchronous methods.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
[ExtensionAttribute]
static void Forget(
	Task^ task
)

Parameters

task
Type: System.Threading.Tasks::Task^

The task.

Return to top
Show: