4 ms·
For the "cleanup", do you mean finalizers? The runtime.SetFanalizer was ever one of my confusions. https://go101.org/article/unofficial-faq.html#finalizers http
by tapirl 8y ago
For the "cleanup", do you mean finalizers? The runtime.SetFanalizer was ever one of my confusions.
https://go101.org/article/unofficial-faq.html#finalizers https://go101.org/article/unofficial-faq.html#finalizers
- krylon 8y agoYes, I was thinking of finalizers. To me, the main problem with them is that I have no control over when/if they get run. Fortunately, there is defer. ;-)