Skip to content

feat: Add manual File closing capability#142

Open
andreascasapu wants to merge 1 commit intoXuanwo:mainfrom
andreascasapu:#141-add-manual-file-closing-mechanism-for-error-handling
Open

feat: Add manual File closing capability#142
andreascasapu wants to merge 1 commit intoXuanwo:mainfrom
andreascasapu:#141-add-manual-file-closing-mechanism-for-error-handling

Conversation

@andreascasapu
Copy link

A try_close() method is added to File in order to allow users to manually close the file and handle any resulting errors.

A try_close() method is added to File in order to allow users to
manually close the file and handle any resulting errors.

In the process, make Drop impl defensive around the file having already
been closed due to the addition of try_close.
@andreascasapu andreascasapu force-pushed the #141-add-manual-file-closing-mechanism-for-error-handling branch from 0fff170 to d7a3c3f Compare January 9, 2026 10:21
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

Successfully merging this pull request may close these issues.

1 participant