CodeGenHelpers.CreateAsyncEnumerableProxy<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
StreamJsonRpc.ProxyGeneration.AsyncEnumerableProxy`1
public static System.Collections.Generic.IAsyncEnumerable<T> CreateAsyncEnumerableProxy<T> (System.Threading.Tasks.Task<System.Collections.Generic.IAsyncEnumerable<T>> enumerableTask, System.Threading.CancellationToken defaultCancellationToken);
static member CreateAsyncEnumerableProxy : System.Threading.Tasks.Task<System.Collections.Generic.IAsyncEnumerable<'T>> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'T>
Public Shared Function CreateAsyncEnumerableProxy(Of T) (enumerableTask As Task(Of IAsyncEnumerable(Of T)), defaultCancellationToken As CancellationToken) As IAsyncEnumerable(Of T)
Type Parameters
- T
Parameters
- enumerableTask
- Task<IAsyncEnumerable<T>>
- defaultCancellationToken
- CancellationToken