The type of the result here isscala.Unit, which is Scala's analogue tovoidin Java. The main difference between Scala'sUnitand Java'svoidis that Scala lets you write down a value of typeUnit, namely(), whereas in Java there is no value of typevoid. (In other words, just as1,2, a...
I wasn't an expert in leak hunting before I had to delve into the depths of the application to do some cleaning. The goal of the present article is to share with you what I learned in the process. Hopefully, it will be useful to anyone who needs to detect and fix memory and resourc...