In the context of freezing, does a lambda have a s...
# kotlin-native
b
In the context of freezing, does a lambda have a sub graph? Does freezing a lambda freeze its captured state?
k
Yep. Anything captured by the lambda might be accessed by another thread. Actually, it will be, as anything that enters the runtime scope of that other thread will probably get a +1 on the reference count, even if you’re not doing anything with it (although don’t quote me on that).
👍 1