Show / Hide Table of Contents

Struct SchedulingContextAwaitable.Awaiter

Represents the awaiter that resumes the asynchronous method on the captured synchronization context or 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 SchedulingContextAwaitable.Awaiter : ICriticalNotifyCompletion, INotifyCompletion

Properties

View Source

IsCompleted

Gets a value indicating that the caller is already running in the captured context, 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
☀
☾