共用方式為


AwaitExtensions Class

Extension methods and awaitables for .NET.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Threading.AwaitExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class AwaitExtensions
public static class AwaitExtensions
[ExtensionAttribute]
public ref class AwaitExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type AwaitExtensions =  class end
public final class AwaitExtensions

The AwaitExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member GetAwaiter Gets an awaiter that schedules continuations on the specified scheduler.
Public methodStatic member SwitchTo Gets an awaitable that schedules continuations on the specified scheduler.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Threading Namespace