[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning if dispose object after async #13

Open
dzmitry-lahoda opened this issue Feb 3, 2021 · 2 comments
Open

warning if dispose object after async #13

dzmitry-lahoda opened this issue Feb 3, 2021 · 2 comments

Comments

@dzmitry-lahoda
Copy link
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

@nlevais
Copy link
nlevais commented Aug 3, 2022

Isn't this is already solved as AsyncFixer04 case ?

@milspiir
Copy link

Any news on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants