azemar
04/23/2020, 2:56 PMval constant1 = "This leaks"
fun constant2() = "This also leaks"
object Constant3 {
const val constant3 = "Not better."
}
class Constant4 {
val constant4 = "Ima leak some more..."
}
and an example of it being used
DispatchQueue.global(qos: .background).async {
let value = ConstantKt.constant1
}
I really hope that I am just using it wrong, any tips?