Akka.Streams.Tests.Performance.MaterializationBenchmark.FlowWithMapBuilder C# (CSharp) Метод

FlowWithMapBuilder() публичный статический Метод

public static FlowWithMapBuilder ( int numberOfCombinators ) : IRunnableGraph
numberOfCombinators int
Результат IRunnableGraph
        public static IRunnableGraph<NotUsed> FlowWithMapBuilder(int numberOfCombinators)
        {
            var source = Source.Single(1);
            for (var i = 0; i < numberOfCombinators; i++)
                source = source.Select(x => x);
            return source.To(Sink.Ignore<int>());
        }

Usage Example

Пример #1
0
 public void Flow_with_1000_map() => MaterializationBenchmark.FlowWithMapBuilder(1000);