語言

MessageFormatterEnumerableTracker.CreateEnumerableProxy<T> 方法

定義

消費者用來構建一個代理 IAsyncEnumerable<T> 伺服器,實現並取得所有值,這些值都來自遠端產生器。

public System.Collections.Generic.IAsyncEnumerable<T> CreateEnumerableProxy<T>(object? handle, System.Collections.Generic.IReadOnlyList<T>? prefetchedItems);
member this.CreateEnumerableProxy : obj * System.Collections.Generic.IReadOnlyList<'T> -> System.Collections.Generic.IAsyncEnumerable<'T>
Public Function CreateEnumerableProxy(Of T) (handle As Object, prefetchedItems As IReadOnlyList(Of T)) As IAsyncEnumerable(Of T)

類型參數

T

由可枚舉所產生的價值類型。

參數

handle
Object

由產生元指定的handle,用來取得更多值或處理列舉器。 可能是 null 想表示不會再有這些數值了。

prefetchedItems
IReadOnlyList<T>

包含在可枚舉handle中的項目清單。

傳回

普查員。

適用於