Prateek Grover
10/16/2019, 7:20 AM"Compilation failed: no implementation for @kotlin.native.Symbol Name public final external fun compareAndSet(expected: kotlin.Int, new: kotlin.Int): kotlin.Boolean defined in kotlin.native.concurrent.AtomicInt[DeserializedSimpleFunctionDescriptor@7f4a1cac] in deserialized class AtomicInt"but the second one passed. I see that there is no implementation in the class in the first case while there is one in the latter.
elizarov
10/16/2019, 7:30 AMkotlin.native.concurrent.AtomicInt
is only available in Kotlin/Native. You cannot use it on JVM, for example. While kotlinx.atomicfu.AtomicInt
is cross-platform wrapper that is available on JVM, JS, Native. Currently, it is just a stub on Native (does not provide actually actual atomicity like the former class)Prateek Grover
10/16/2019, 7:38 AMPrateek Grover
10/16/2019, 7:42 AM