Edit

Share via


IAsyncEnumerableGrainExtension.StartEnumeration<T> Method

Definition

Invokes an IAsyncEnumerable<T> request and begins enumeration.

[Orleans.Concurrency.AlwaysInterleave]
public System.Threading.Tasks.ValueTask<(Orleans.Runtime.EnumerationResult Status, object Value)> StartEnumeration<T> (Guid requestId, Orleans.Runtime.IAsyncEnumerableRequest<T> request);
[<Orleans.Concurrency.AlwaysInterleave>]
abstract member StartEnumeration : Guid * Orleans.Runtime.IAsyncEnumerableRequest<'T> -> System.Threading.Tasks.ValueTask<ValueTuple<Orleans.Runtime.EnumerationResult, obj>>
Public Function StartEnumeration(Of T) (requestId As Guid, request As IAsyncEnumerableRequest(Of T)) As ValueTask(Of ValueTuple(Of EnumerationResult, Object))

Type Parameters

T

The element type.

Parameters

requestId
Guid

The request id, generated by the caller.

request
IAsyncEnumerableRequest<T>

The request.

Returns

The result of enumeration

Attributes

Applies to