AwaitExtensions.TaskSchedulerAwaiter Constructor

Initializes a new instance of the TaskSchedulerAwaiter.

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

Syntax

'Declaration
Public Sub New ( _
    scheduler As TaskScheduler, _
    alwaysYield As Boolean _
)
public TaskSchedulerAwaiter(
    TaskScheduler scheduler,
    bool alwaysYield
)
public:
TaskSchedulerAwaiter(
    TaskScheduler^ scheduler, 
    bool alwaysYield
)
new : 
        scheduler:TaskScheduler * 
        alwaysYield:bool -> TaskSchedulerAwaiter
public function AwaitExtensions.TaskSchedulerAwaiter(
    scheduler : TaskScheduler, 
    alwaysYield : boolean
)

Parameters

  • alwaysYield
    Type: System.Boolean

    A value indicating whether the caller should yield even if already executing on the desired task scheduler.

.NET Framework Security

See Also

Reference

AwaitExtensions.TaskSchedulerAwaiter Structure

Microsoft.VisualStudio.Threading Namespace