示例#1
0
 public async Task <IEnumerable <DummyData> > ProducerTaskConsumerAwaitsDeserializingLoaderAsync()
 {
     using (var downloader = new ProducerTaskConsumerAwaitsDeserializingLoader(Constants.MaxConcurrency))
     {
         return(await downloader.LoadAsync(_uris));
     }
 }
示例#2
0
 public async Task ProducerTaskConsumerAwaitsDeserializingLoaderAsync()
 {
     using (var downloader = new ProducerTaskConsumerAwaitsDeserializingLoader(Constants.MaxConcurrency))
     {
         (await downloader.LoadAsync(_uris)).Consume(_consumer);
     }
 }