I use the rule of thumb to always put inside a using statement everything that implements IDisposable. But I'm starting to work with Tasks and I can't add a using statement like this:
var getResultTasks = new List<Task<HttpResponseMessage>>();
getResultTasks.Add(_client.GetAsync(requestUri));
getResultTasks.Add(_client.GetAsync(requestUri));
using var httpGetResponseMessages = await Task.WhenAll(getResultTasks);
It says:
'HttpResponseMessage[]': type used in a using statement must be implicitly convertible to 'System.IDisposable'.
I can apply it without problems to a single instance though:
using var testing = await _client.GetAsync("");