mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
ThreadLocal.withInitial is a JVM-only API that doesn't compile on Kotlin/Native or iOS targets. Replace all usages in commonMain (FieldP.kt, Point.kt) with a new ScratchLocal expect/actual: - jvmMain/androidMain: delegates to java.lang.ThreadLocal (same behavior) - nativeMain: holds value directly (Kotlin/Native coroutines are cooperative, scratch buffers don't need thread isolation) https://claude.ai/code/session_01BhU63WUe9AhikZxRdw3Lpg