Skip to content

Add close method to File #59567

Description

@czipperz

Currently, as far as I know, there is no way to close a file and handle errors with closing it. It would be useful to add a method to File that allows us to handle any potential errors instead of them being ignored.

fn close(self) -> std::io::Result<()>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions