Skip to content

warning if dispose object after async #13

@dzmitry-lahoda

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions