Show / Hide Table of Contents

Struct AsyncAwaitable<TResult>

Provides an awaitable object that allows for configured awaits on IAsyncOperation<TResult>. This type is intended for compiler use only.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UnityFx.Async.CompilerServices
Assembly: UnityFx.Async-netstandard2.0.dll
Syntax
public struct AsyncAwaitable<TResult>
Type Parameters
Name Description
TResult

Constructors

| Improve this Doc View Source

AsyncAwaitable(IAsyncOperation<TResult>, SynchronizationContext)

Initializes a new instance of the AsyncAwaitable<TResult> struct.

Declaration
public AsyncAwaitable(IAsyncOperation<TResult> op, SynchronizationContext syncContext)
Parameters
Type Name Description
IAsyncOperation<TResult> op
SynchronizationContext syncContext

Methods

| Improve this Doc View Source

GetAwaiter()

Returns the awaiter.

Declaration
public AsyncAwaiter<TResult> GetAwaiter()
Returns
Type Description
AsyncAwaiter<TResult>

See Also

IAsyncOperation
  • Improve this Doc
  • View Source
Back to top Copyright (c) 2017-2018 Alexander Bogarsukov