Show / Hide Table of Contents

Struct DynamicTaskAwaitable.Awaiter

Provides an object that waits for the completion of an asynchronous task.

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

Properties

View Source

IsCompleted

Gets a value that indicates whether the asynchronous task has completed.

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

Methods

View Source

GetResult()

Gets dynamically typed task result.

Declaration
[RequiresDynamicCode("Runtime binding requires dynamic code compilation")]
[RequiresUnreferencedCode("Dynamic code generation may be incompatible with IL trimming")]
public dynamic? GetResult()
Returns
Type Description
dynamic

The result of the completed task; or Value if underlying task is not of type Task<TResult>.

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
☀
☾