JoinableTaskFactory.MainThreadAwaiter Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An awaiter struct that facilitates an asynchronous transition to the Main thread.
public: value class JoinableTaskFactory::MainThreadAwaiter : System::Runtime::CompilerServices::INotifyCompletion
public: value class JoinableTaskFactory::MainThreadAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct JoinableTaskFactory.MainThreadAwaiter : System.Runtime.CompilerServices.INotifyCompletion
public struct JoinableTaskFactory.MainThreadAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct JoinableTaskFactory.MainThreadAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type JoinableTaskFactory.MainThreadAwaiter = struct
interface INotifyCompletion
type JoinableTaskFactory.MainThreadAwaiter = struct
interface ICriticalNotifyCompletion
interface INotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type JoinableTaskFactory.MainThreadAwaiter = struct
interface ICriticalNotifyCompletion
interface INotifyCompletion
Public Structure JoinableTaskFactory.MainThreadAwaiter
Implements INotifyCompletion
Public Structure JoinableTaskFactory.MainThreadAwaiter
Implements ICriticalNotifyCompletion
- Inheritance
-
JoinableTaskFactory.MainThreadAwaiter
- Attributes
- Implements
Properties
IsCompleted |
Gets a value indicating whether the caller is already on the Main thread. |
Methods
GetResult() |
Called on the Main thread to prepare it to execute the continuation. |
OnCompleted(Action) |
Schedules a continuation for execution on the Main thread. |
UnsafeOnCompleted(Action) |
Schedules a continuation for execution on the Main thread without capturing the ExecutionContext. |
Applies to
Thread Safety
This type is thread-safe for all members.