Show / Hide Table of Contents

Struct TaskSchedulerAwaitable.Awaiter

Represents the awaiter that switches the asynchronous method to the specified task scheduler.

Implements
ICriticalNotifyCompletion
INotifyCompletion
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Threading.dll
Syntax
public readonly struct TaskSchedulerAwaitable.Awaiter : ICriticalNotifyCompletion, INotifyCompletion

Properties

View Source

IsCompleted

Gets a value indicating that the caller is already running on the target scheduler, so the switch is not needed.

Declaration
public bool IsCompleted { get; }
Property Value
Type Description
bool

Methods

View Source

GetResult()

Ends the switch.

Declaration
public void GetResult()
View Source

OnCompleted(Action)

Declaration
public void OnCompleted(Action continuation)
Parameters
Type Name Description
Action continuation
View Source

UnsafeOnCompleted(Action)

Declaration
public void UnsafeOnCompleted(Action continuation)
Parameters
Type Name Description
Action continuation

Implements

ICriticalNotifyCompletion
INotifyCompletion

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾