Share via


TplExtensions.NoThrowTaskAwaiter Constructor

Initializes a new instance of NoThrowTaskAwaiter.

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

Syntax

'Declaration
Public Sub New ( _
    task As Task, _
    captureContext As Boolean _
)
public NoThrowTaskAwaiter(
    Task task,
    bool captureContext
)
public:
NoThrowTaskAwaiter(
    Task^ task, 
    bool captureContext
)
new : 
        task:Task * 
        captureContext:bool -> NoThrowTaskAwaiter
public function TplExtensions.NoThrowTaskAwaiter(
    task : Task, 
    captureContext : boolean
)

Parameters

  • captureContext
    Type: System.Boolean

    true if the continuation should be scheduled on the current sync context, otherwise false.

.NET Framework Security

See Also

Reference

TplExtensions.NoThrowTaskAwaiter Structure

Microsoft.VisualStudio.Threading Namespace