Android 12 Developer Preview is here! Try it out, and give us your feedback!

AtomicInt

expect class AtomicInt
kotlin.Any
   ↳ androidx.compose.ui.platform.AtomicInt

Summary

Public constructors
<init>(value_: Int)

Public methods
Int
addAndGet(delta: Int)

Boolean
compareAndSet(expected: Int, new: Int)

Public constructors

<init>

AtomicInt(value_: Int)

Public methods

addAndGet

fun addAndGet(delta: Int): Int

compareAndSet

fun compareAndSet(
    expected: Int,
    new: Int
): Boolean