Share via


IReliableQueue<T>.CreateEnumerableAsync(ITransaction) Method

Definition

Creates an async enumerable over the IReliableQueue<T>.

public System.Threading.Tasks.Task<Microsoft.ServiceFabric.Data.IAsyncEnumerable<T>> CreateEnumerableAsync (Microsoft.ServiceFabric.Data.ITransaction tx);
abstract member CreateEnumerableAsync : Microsoft.ServiceFabric.Data.ITransaction -> System.Threading.Tasks.Task<Microsoft.ServiceFabric.Data.IAsyncEnumerable<'T>>
Public Function CreateEnumerableAsync (tx As ITransaction) As Task(Of IAsyncEnumerable(Of T))

Parameters

tx
ITransaction

Transaction to associate this operation with.

Returns

IEnumerable that represents all the values.

Exceptions

Exception indicates that the cannot serve reads at the moment. can be thrown in all s. One example for it being thrown in the is loss of . One example for it being thrown in the is that Reliable Queue's state is not yet consistent.

Applies to