Show / Hide Table of Contents

Struct DynamicTaskAwaitable.Awaiter

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

Implements
IFuture
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 struct Awaiter : IFuture, ICriticalNotifyCompletion, INotifyCompletion

Properties

| Improve this Doc View Source

IsCompleted

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

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

Methods

| Improve this Doc View Source

GetResult()

Gets dynamically typed task result.

Declaration
public dynamic GetResult()
Returns
Type Description
Object

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

| Improve this Doc View Source

OnCompleted(Action)

Sets the action to perform when this object stops waiting for the asynchronous task to complete.

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

The action to perform when the wait operation completes.

Explicit Interface Implementations

| Improve this Doc View Source

ICriticalNotifyCompletion.UnsafeOnCompleted(Action)

Declaration
void ICriticalNotifyCompletion.UnsafeOnCompleted(Action continuation)
Parameters
Type Name Description
Action continuation

Implements

IFuture
System.Runtime.CompilerServices.ICriticalNotifyCompletion
System.Runtime.CompilerServices.INotifyCompletion

Extension Methods

Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX