https://kotlinlang.org logo
j

jstuyts-squins

12/14/2017, 11:04 AM
Right, if the lambda is not stored somewhere, i.e. there is no reference to it after
doSomething(...)
is finished, then the lambda and the activity can be garbage collected