Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
An awaitable struct that facilitates an asynchronous transition to the Main thread.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Structure MainThreadAwaitable
public struct MainThreadAwaitable
public value class MainThreadAwaitable
[<Sealed>]
type MainThreadAwaitable = struct end
JScript supports the use of structures, but not the declaration of new ones.
The JoinableTaskFactory.MainThreadAwaitable type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) |
![]() |
GetAwaiter | Gets the awaiter. |
![]() |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
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.