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
scheduler
Type: System.Threading.Tasks.TaskSchedulerThe scheduler for continuations.
alwaysYield
Type: System.BooleanA value indicating whether the caller should yield even if already executing on the desired task scheduler.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.