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