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);