What library do I need to add to access <https://k...
# server
d
What library do I need to add to access https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.concurrent/ on 1.9.24 jvm? Is it really just one of
arrow.atomic.AtomicLong
or
kotlinx.atomicfu.AtomicLong
and the doc page incorrectly says the package is
kotlin.concurrent
?
e
those are all different
d
I tried pulling in
Copy code
{ module = "org.jetbrains.kotlin:kotlin-stdlib", version = "1.9.24"}
and it can't find
kotlin.concurrent.AtomicLong
e
kotlin.concurrent has atomic types specifically for Kotlin Native, they're not available on JVM or JS
d
ah, the docpage I liinked has the jvm bubble
e
not on the AtomicLong type
d
Screenshot 2024-06-17 at 5.06.56 PM.png
e
The bubbles on top are just the decoder guide
the type itself is purple only, see that single dot?
d
ugh, yeah. very subtle
sorry to bother you 🙂
k
The "bubbles" at the top are actually buttons. If you're not interested in Native, you can press the button and it will turn grey and all Native-only documentation will disappear.