GreyhairRedbear
03/23/2019, 12:54 PM[weak self]
r4zzz4k
03/23/2019, 1:32 PMWeakReference(this)
and consume it from the lambda. I'd try something like
with(WeakReference(this)) {
// Code containing lambda
}
I have no idea if that's working, though, as coding in Slack never does any good :)
To my knowledge, if you don't reference enclosing class instance, this
doesn't get captured. So is it really needed on a language syntax level?GreyhairRedbear
03/23/2019, 2:55 PM[weak self]
does, but I'll try to work on some examples and see what's the outcome.gildor
03/24/2019, 1:50 AMGreyhairRedbear
03/24/2019, 9:47 PM[weak self]
in the beginning of a lambda.gildor
03/25/2019, 12:54 AMGreyhairRedbear
03/25/2019, 6:58 PM