Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport WeakRef / FinalizationRegistry #1299
Open
Projects
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An earlier issue suggested the implementation of a
@destructorannotation, but it turned out that is is likely not feasible and we should instead aim for a more JS-like approach, i.e. along the lines of WeakRef and FinalizationRegistry since that's much safer. Also, since__finalizehas been implemented recently, it should be possible now to roll custom solutions, or to investigate a JS-like approach further.