Since when is the `LazyThreadSafetyMode` parameter...
# getting-started
c
Since when is the
LazyThreadSafetyMode
parameter of
lazy
ignored? The documentation still says to use it. and it's not marked as
@Deprecated
!
e
it's ignored on JS. it's not ignored on JVM.
c
The code I linked is in the common module.
e
your link is only the
expect
c
That's the documentation shown by IDEA when using
lazy
in the common module
e
seems like an IDE bug that you can't navigate to the platform-specific sources of stdlib :( https://youtrack.jetbrains.com/issue/KTIJ-10228/MPP-code-insight-features-not-available-for-library-sources
the online documentation does show the proper text per platform https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/lazy.html
IMO the native documentation should really mention that
LazyThreadSafetyMode
only works with the new memory model… perhaps that's obvious given how the old memory model worked though