Class AsyncBufferedResult
Implementation of a result which asynchronously buffers all values in memory, rather than stream them from QLDB during retrieval. This implementation should only be used when the result is to be returned after the parent transaction is to be committed.
Implements
System.Collections.Generic.IAsyncEnumerable<Amazon.IonDotnet.Tree.IIonValue>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public class AsyncBufferedResult : BaseBufferedResult, IAsyncResult, IAsyncEnumerable<IIonValue>
Methods
| Improve this Doc View SourceBufferResultAsync(IAsyncResult)
Constructor for the result which asynchronously buffers into the memory the supplied result before closing it.
Declaration
public static async Task<AsyncBufferedResult> BufferResultAsync(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result | The result which is to be buffered into memory and closed. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<AsyncBufferedResult> | The AsyncBufferedResult object. |
GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates through a collection.
Declaration
public IAsyncEnumerator<IIonValue> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IAsyncEnumerator<Amazon.IonDotnet.Tree.IIonValue> | An |
Implements
System.Collections.Generic.IAsyncEnumerable<T>