Comments (4)
Exceptions are the same when using atomic(0)
instead of atomic<Int>(0)
from kotlinx-atomicfu.
Have you found a workaround or an issue was resolved?
from kotlinx-atomicfu.
@elizarov No.
from kotlinx-atomicfu.
It might because count
is private in the companion
, accessing it from outside the companion object
produces that issue.
I added a new fun to do getAndIncrease
in the companion
, which works well
companion object{
private val count = atomic(0)
fun nextCount() = count.getAndIncrease()
from kotlinx-atomicfu.
Related Issues (20)
- Further enhancements of integration testing
- The library versions don't match. Expected 'unspecified', found '0.23.0' HOT 4
- error: Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop" HOT 1
- Documentation improvements 📃
- `AtomicRef<Int>.compareAndSet` always fails when `value >= 128` on macOS and iOS HOT 5
- The problem of 2 atomicfu gradle plugins HOT 4
- Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Class.isInterface()' on a null object reference HOT 1
- Misleading README paragraph about kotlin version HOT 2
- Warning: compileOnly dependencies are not applicable for Kotlin/Native HOT 3
- Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop" when using coroutines 1.8.0-RC HOT 1
- Duplicate library name warning with atomicfu 0.23.0 HOT 7
- Order of atomicfu and kotlin plugins in the classpath HOT 3
- Add tests to check compatibility of AGP with lower Kotlin versions
- After applying atomicfu plugin to a project with Java sources corresponding classes are missing HOT 1
- atomicfu can't transform classes targeting Java 21 HOT 1
- A compileOnly dependency is used in the Kotlin/Native target HOT 3
- java.io.IOException: Cannot create file Gradle__org_jetbrains_kotlinx_atomicfu_cinterop_interop_... HOT 3
- ClassNotFoundException AtomicfuKotlinGradleSubplugin$AtomicfuKotlinGradleExtension HOT 10
- ReentrantLock errors in native source set with Kotlin 2.0.0-Beta3 HOT 3
- Tidy up our build setup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlinx-atomicfu.