Google 致力于为黑人社区推动种族平等。查看具体举措

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