Compartilhar via


AwaitExtensions.TaskSchedulerAwaitable Constructor

Initializes a new instance of the TaskSchedulerAwaitable.

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

Syntax

'Declaration
Public Sub New ( _
    taskScheduler As TaskScheduler, _
    alwaysYield As Boolean _
)
public TaskSchedulerAwaitable(
    TaskScheduler taskScheduler,
    bool alwaysYield
)
public:
TaskSchedulerAwaitable(
    TaskScheduler^ taskScheduler, 
    bool alwaysYield
)
new : 
        taskScheduler:TaskScheduler * 
        alwaysYield:bool -> TaskSchedulerAwaitable
public function AwaitExtensions.TaskSchedulerAwaitable(
    taskScheduler : 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.TaskSchedulerAwaitable Structure

Microsoft.VisualStudio.Threading Namespace