Exemplo n.º 1
0
 /// <inheritdoc cref="CollectAsync{T}(System.Collections.Generic.IAsyncEnumerable{T})"/>
 public static ValueTaskAwaiter <IReadOnlyList <T> > GetAwaiter <T>(
     this IAsyncEnumerable <T> source) where T : IBatchItem => source.CollectAsync().GetAwaiter();
Exemplo n.º 2
0
 public static Task <string> ToPrettyStringAsync <T>([NotNull] this IAsyncEnumerable <T> iae)
 {
     return(iae.CollectAsync().ThenApply(l => l.ToPrettyString()));
 }