Show / Hide Table of Contents

Struct AwaitableResult<T>

Represents awaitable object that can suspend the exception raised by the underlying task.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.dll
Syntax
public readonly struct AwaitableResult<T>
Type Parameters
Name Description
T

The type of the task.

Methods

| Edit this page View Source

ConfigureAwait(bool)

Configures an awaiter for this value.

Declaration
public AwaitableResult<T> ConfigureAwait(bool continueOnCapturedContext)
Parameters
Type Name Description
bool continueOnCapturedContext

true to attempt to marshal the continuation back to the captured context; otherwise, false.

Returns
Type Description
AwaitableResult<T>

The configured object.

| Edit this page View Source

GetAwaiter()

Gets the awaiter for this object.

Declaration
public AwaitableResult<T>.Awaiter GetAwaiter()
Returns
Type Description
AwaitableResult<T>.Awaiter

The awaiter for this object.

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