bytecodealliance / bytecodealliance/componentize-dotnet
Imported Resources don't provide a finalizer
Open
- Dominant language
- C#
- Stars
- 147
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Currently, projections for imported resources implement `IDisposable`, but they do not provide a `finalizer`. This means that if the user forgets to manually dispose the resource, its `[resource-drop]` function is never called.
I believe this is incorrect, and the resource should provide a finalizer that calls the resource's `[resource-drop]` function.
---
Version:
````xml
````
Contributor guide
Assessment
This issue has not been assessed yet.