Beispiel #1
0
 public static IAsyncStream <TOutput> ToStream <TOutput>(this ISourceBlock <TOutput> source, TOutput sentinel = default, CancellationToken cancellationToken = default)
 {
     return(new AsyncStreamWrapper <TOutput>(source.ReceiveAllAsync(cancellationToken), sentinel));
 }