[x] I have verified that I am running the latest version of DisposableFixer: 2.1.0
[x] I have searched open and closed issues to ensure it has not already been reported
Description
If returning Task
Source Code
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace DisposableFixer.Test
{
internal class MyClass
{
public async Task<object> Create(CancellationToken cancel)
{
var mem = new MemoryStream();
await Task.Delay(1, cancel);
return mem;
}
}
}
Prerequisites
Description
If returning Task
Source Code
Screenshot