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.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading.Tasks
Assembly: DotNext.dll
Syntax
public readonly struct DynamicTaskAwaitable.Awaiter : ICriticalNotifyCompletion, INotifyCompletion

Properties

| Edit this page 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

| Edit this page View Source

GetResult()

Gets dynamically typed task result.

Declaration
public dynamic? GetResult()
Returns
Type Description
dynamic

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

| Edit this page View Source

OnCompleted(Action)

Schedules the continuation action that's invoked when the instance completes.

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

The action to invoke when the operation completes.

Exceptions
Type Condition
ArgumentNullException

The continuation argument is null (Nothing in Visual Basic).

| Edit this page View Source

UnsafeOnCompleted(Action)

Schedules the continuation action that's invoked when the instance completes.

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

The action to invoke when the operation completes.

Exceptions
Type Condition
ArgumentNullException

The continuation argument is null (Nothing in Visual Basic).

Implements

ICriticalNotifyCompletion
INotifyCompletion

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾