Exemple #1
0
 //[Benchmark(Description = "Producer-Consumer with Threads")]
 public async Task <IEnumerable <DummyData> > ProducerConsumerThreadsDeserializingLoaderAsync()
 {
     using (var downloader = new ProducerConsumerThreadsDeserializingLoader(Constants.MaxConcurrency))
     {
         return(await downloader.LoadAsync(_uris));
     }
 }
Exemple #2
0
 //[Benchmark(Description = "Producer-Consumer with Threads")]
 public async Task ProducerConsumerThreadsDeserializingLoaderAsync()
 {
     using (var downloader = new ProducerConsumerThreadsDeserializingLoader(Constants.MaxConcurrency))
     {
         (await downloader.LoadAsync(_uris)).Consume(_consumer);
     }
 }