I don't get the distinction between destructors and "finalizers" but imho the problem is very much that the GC is calling ~this.
Destructors are deterministic, finalizers are not. At least, that's how I understand the terms are commonly used.
I don't get the distinction between destructors and "finalizers" but imho the problem is very much that the GC is calling ~this.
Destructors are deterministic, finalizers are not. At least, that's how I understand the terms are commonly used.