79666063

Date: 2025-06-14 18:30:23
Score: 0.5
Natty:
Report link

If you have enumerable you can split it:

static var client = new HttpClient();

string[] urls = { "http://google.com", "http://yahoo.com", ... };

foreach (var urlsChunk in url.Chunk(20))
{
    var htmls = await Task.WhenAll(urlsChunk.Select(url => client.GetStringAsync(url));
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mariusz96