Show / Hide Table of Contents

Struct ScopedTaskSchedulerAwaitable

Represents an awaitable object that switches the asynchronous method to the specified task scheduler, and returns the scope that switches the method back.

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 ScopedTaskSchedulerAwaitable

Methods

View Source

GetAwaiter()

Gets the awaiter of this object.

Declaration
public ScopedTaskSchedulerAwaitable.Awaiter GetAwaiter()
Returns
Type Description
ScopedTaskSchedulerAwaitable.Awaiter

The awaiter of this object.

Remarks

The awaiter captures the synchronization context or the scheduler of the caller to be restored by DisposeAsync().

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)

See Also

TaskSchedulerScope
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾