Package-level declarations

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Types

Link copied to clipboard

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard
expect class AtomicInt(value: Int)

An Int value that may be updated atomically.

Since Kotlin 2.1
actual class AtomicInt(value: Int)

An Int value that may be updated atomically.

Since Kotlin 2.1
actual class AtomicInt(value: Int)

An Int value that may be updated atomically.

Since Kotlin 2.1
actual class AtomicInt(var value: Int)

An Int value that may be updated atomically.

Since Kotlin 2.1
actual class AtomicInt(value: Int)

An Int value that may be updated atomically.

Since Kotlin 2.1
actual class AtomicInt(value: Int)

An Int value that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1
actual class AtomicLong(var value: Long)

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard
class AtomicNativePtr(var value: NativePtr)

A kotlinx.cinterop.NativePtr that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1
actual class AtomicReference<T>(var value: T)

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

Functions

Link copied to clipboard
inline fun <T> AtomicArray(size: Int, init: (Int) -> T): AtomicArray<T>

Creates a new AtomicArray if the given type with the given size, where each element is initialized by calling the given init function.

Since Kotlin 2.1
Link copied to clipboard

Returns a new AtomicArray of the given type with the given size, initialized with null values.

Since Kotlin 2.2
Link copied to clipboard

Creates a new AtomicIntArray of the given size, where each element is initialized by calling the given init function.

Since Kotlin 2.1
Link copied to clipboard

Creates a new AtomicLongArray of the given size, where each element is initialized by calling the given init function.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the current value of this AtomicInt by one and returns the new value.

Since Kotlin 2.1

Atomically decrements the current value of this AtomicLong by one and returns the new value.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the element of this AtomicIntArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1

Atomically decrements the element of this AtomicLongArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the current value of this AtomicInt by one and returns the old value.

Since Kotlin 2.1

Atomically decrements the current value of this AtomicLong by one and returns the old value.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the element of this AtomicIntArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1

Atomically decrements the element of this AtomicLongArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the current value of this AtomicInt by one and returns the old value.

Since Kotlin 2.1

Atomically increments the current value of this AtomicLong by one and returns the old value.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the element of this AtomicIntArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1

Atomically increments the element of this AtomicLongArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1
Link copied to clipboard
expect inline fun AtomicInt.fetchAndUpdate(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
expect inline fun AtomicLong.fetchAndUpdate(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
expect inline fun <T> AtomicReference<T>.fetchAndUpdate(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicInt.fetchAndUpdate(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicLong.fetchAndUpdate(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.fetchAndUpdate(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicInt.fetchAndUpdate(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicLong.fetchAndUpdate(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.fetchAndUpdate(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicInt.fetchAndUpdate(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicLong.fetchAndUpdate(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
inline fun AtomicNativePtr.fetchAndUpdate(transform: (NativePtr) -> NativePtr): NativePtr

Atomically updates the value of this AtomicNativePtr with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.fetchAndUpdate(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicInt.fetchAndUpdate(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicLong.fetchAndUpdate(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.fetchAndUpdate(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicInt.fetchAndUpdate(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun AtomicLong.fetchAndUpdate(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.fetchAndUpdate(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the value replaced by the updated one.

Since Kotlin 2.2
Link copied to clipboard
expect inline fun <T> AtomicArray<T>.fetchAndUpdateAt(index: Int, transform: (T) -> T): T
expect inline fun AtomicLongArray.fetchAndUpdateAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
expect inline fun AtomicIntArray.fetchAndUpdateAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.fetchAndUpdateAt(index: Int, transform: (T) -> T): T
actual inline fun AtomicLongArray.fetchAndUpdateAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.fetchAndUpdateAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.fetchAndUpdateAt(index: Int, transform: (T) -> T): T
actual inline fun AtomicLongArray.fetchAndUpdateAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.fetchAndUpdateAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.fetchAndUpdateAt(index: Int, transform: (T) -> T): T
actual inline fun AtomicLongArray.fetchAndUpdateAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.fetchAndUpdateAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.fetchAndUpdateAt(index: Int, transform: (T) -> T): T
actual inline fun AtomicLongArray.fetchAndUpdateAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.fetchAndUpdateAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.fetchAndUpdateAt(index: Int, transform: (T) -> T): T
actual inline fun AtomicLongArray.fetchAndUpdateAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.fetchAndUpdateAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the old value of the element.

Since Kotlin 2.2
Link copied to clipboard

Atomically increments the current value of this AtomicInt by one and returns the new value.

Since Kotlin 2.1

Atomically increments the current value of this AtomicLong by one and returns the new value.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the element of this AtomicIntArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1

Atomically increments the element of this AtomicLongArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically subtracts the given value from the current value of this AtomicInt.

Since Kotlin 2.1

Atomically subtracts the given value from the current value of this AtomicLong.

Since Kotlin 2.1
Link copied to clipboard

Atomically adds the given value to the current value of this AtomicInt.

Since Kotlin 2.1

Atomically adds the given value to the current value of this AtomicLong.

Since Kotlin 2.1
Link copied to clipboard
expect inline fun AtomicInt.update(transform: (Int) -> Int)

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
expect inline fun AtomicLong.update(transform: (Long) -> Long)

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
expect inline fun <T> AtomicReference<T>.update(transform: (T) -> T)

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicInt.update(transform: (Int) -> Int)

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicLong.update(transform: (Long) -> Long)

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.update(transform: (T) -> T)

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicInt.update(transform: (Int) -> Int)

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicLong.update(transform: (Long) -> Long)

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.update(transform: (T) -> T)

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicInt.update(transform: (Int) -> Int)

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicLong.update(transform: (Long) -> Long)

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
inline fun AtomicNativePtr.update(transform: (NativePtr) -> NativePtr)

Atomically updates the value of this AtomicNativePtr with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.update(transform: (T) -> T)

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicInt.update(transform: (Int) -> Int)

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicLong.update(transform: (Long) -> Long)

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.update(transform: (T) -> T)

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicInt.update(transform: (Int) -> Int)

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun AtomicLong.update(transform: (Long) -> Long)

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.update(transform: (T) -> T)

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value.

Since Kotlin 2.2
Link copied to clipboard
expect inline fun AtomicInt.updateAndFetch(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
expect inline fun AtomicLong.updateAndFetch(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
expect inline fun <T> AtomicReference<T>.updateAndFetch(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicInt.updateAndFetch(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicLong.updateAndFetch(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.updateAndFetch(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicInt.updateAndFetch(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicLong.updateAndFetch(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.updateAndFetch(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicInt.updateAndFetch(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicLong.updateAndFetch(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
inline fun AtomicNativePtr.updateAndFetch(transform: (NativePtr) -> NativePtr): NativePtr

Atomically updates the value of this AtomicNativePtr with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.updateAndFetch(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicInt.updateAndFetch(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicLong.updateAndFetch(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.updateAndFetch(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicInt.updateAndFetch(transform: (Int) -> Int): Int

Atomically updates the value of this AtomicInt with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun AtomicLong.updateAndFetch(transform: (Long) -> Long): Long

Atomically updates the value of this AtomicLong with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
actual inline fun <T> AtomicReference<T>.updateAndFetch(transform: (T) -> T): T

Atomically updates the value of this AtomicReference with the value obtained by calling the transform function on the current value and returns the new value.

Since Kotlin 2.2
Link copied to clipboard
expect inline fun <T> AtomicArray<T>.updateAndFetchAt(index: Int, transform: (T) -> T): T

Atomically updates the element of this AtomicArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
expect inline fun AtomicIntArray.updateAndFetchAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
expect inline fun AtomicLongArray.updateAndFetchAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAndFetchAt(index: Int, transform: (T) -> T): T

Atomically updates the element of this AtomicArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAndFetchAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAndFetchAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAndFetchAt(index: Int, transform: (T) -> T): T

Atomically updates the element of this AtomicArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAndFetchAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAndFetchAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAndFetchAt(index: Int, transform: (T) -> T): T

Atomically updates the element of this AtomicArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAndFetchAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAndFetchAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAndFetchAt(index: Int, transform: (T) -> T): T

Atomically updates the element of this AtomicArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAndFetchAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAndFetchAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAndFetchAt(index: Int, transform: (T) -> T): T

Atomically updates the element of this AtomicArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAndFetchAt(index: Int, transform: (Int) -> Int): Int

Atomically updates the element of this AtomicIntArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAndFetchAt(index: Int, transform: (Long) -> Long): Long

Atomically updates the element of this AtomicLongArray at the given index using the transform function and returns the updated value of the element.

Since Kotlin 2.2
Link copied to clipboard
expect inline fun <T> AtomicArray<T>.updateAt(index: Int, transform: (T) -> T)

Atomically updates the element of this AtomicArray at the given index using the transform function.

Since Kotlin 2.2
expect inline fun AtomicIntArray.updateAt(index: Int, transform: (Int) -> Int)

Atomically updates the element of this AtomicIntArray at the given index using the transform function.

Since Kotlin 2.2
expect inline fun AtomicLongArray.updateAt(index: Int, transform: (Long) -> Long)

Atomically updates the element of this AtomicLongArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAt(index: Int, transform: (T) -> T)

Atomically updates the element of this AtomicArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAt(index: Int, transform: (Int) -> Int)

Atomically updates the element of this AtomicIntArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAt(index: Int, transform: (Long) -> Long)

Atomically updates the element of this AtomicLongArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAt(index: Int, transform: (T) -> T)

Atomically updates the element of this AtomicArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAt(index: Int, transform: (Int) -> Int)

Atomically updates the element of this AtomicIntArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAt(index: Int, transform: (Long) -> Long)

Atomically updates the element of this AtomicLongArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAt(index: Int, transform: (T) -> T)

Atomically updates the element of this AtomicArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAt(index: Int, transform: (Int) -> Int)

Atomically updates the element of this AtomicIntArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAt(index: Int, transform: (Long) -> Long)

Atomically updates the element of this AtomicLongArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAt(index: Int, transform: (T) -> T)

Atomically updates the element of this AtomicArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAt(index: Int, transform: (Int) -> Int)

Atomically updates the element of this AtomicIntArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAt(index: Int, transform: (Long) -> Long)

Atomically updates the element of this AtomicLongArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun <T> AtomicArray<T>.updateAt(index: Int, transform: (T) -> T)

Atomically updates the element of this AtomicArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicIntArray.updateAt(index: Int, transform: (Int) -> Int)

Atomically updates the element of this AtomicIntArray at the given index using the transform function.

Since Kotlin 2.2
actual inline fun AtomicLongArray.updateAt(index: Int, transform: (Long) -> Long)

Atomically updates the element of this AtomicLongArray at the given index using the transform function.

Since Kotlin 2.2