Struct AsyncAwaitable
Provides an awaitable object that allows for configured awaits on IAsyncOperation. 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
Constructors
| Improve this Doc View SourceAsyncAwaitable(IAsyncOperation, SynchronizationContext)
Initializes a new instance of the AsyncAwaitable struct.
Declaration
public AsyncAwaitable(IAsyncOperation op, SynchronizationContext syncContext)
Parameters
Type | Name | Description |
---|---|---|
IAsyncOperation | op | |
SynchronizationContext | syncContext |
Methods
| Improve this Doc View SourceGetAwaiter()
Returns the awaiter.
Declaration
public AsyncAwaiter GetAwaiter()
Returns
Type | Description |
---|---|
AsyncAwaiter |