Join Slack
Powered by
What's the difference between `lazy` and `atomicLa...
# kotlin-native
b
basher
02/11/2020, 9:24 PM
What's the difference between
lazy
and
atomicLazy
? Is
lazy
not thread-safe on native?
k
Kris Wong
02/11/2020, 9:30 PM
docs say atomicLazy works with frozen objects
Kris Wong
02/11/2020, 9:30 PM
i assume it's using an atomic reference
b
basher
02/11/2020, 9:50 PM
lazy works with frozen objects too…
k
Kris Wong
02/11/2020, 10:03 PM
you can see the differences in native/concurrent/Lazy.kt
👍 1
3
Views
Open in Slack
Previous
Next