AsyncFixer icon indicating copy to clipboard operation
AsyncFixer copied to clipboard

warning if dispose object after async

Open dzmitry-lahoda opened this issue 5 years ago • 2 comments

Task foo()
{
    using var destination = new MemoryStream();
    using FileStream source = File.Open("data", FileMode.Open);
    return source.CopyToAsync(destination);
}

should warn that streams could be closed before task executed

dzmitry-lahoda avatar Feb 03 '21 08:02 dzmitry-lahoda

Isn't this is already solved as AsyncFixer04 case ?

nlevais avatar Aug 03 '22 13:08 nlevais

Any news on this one?

milspiir avatar Dec 20 '22 07:12 milspiir