AtomicArray

expect constructor(array: Array<T>)(source)

Creates a new AtomicArray filled with elements of the given array.

Samples

import kotlin.concurrent.atomics.*

fun main() { 
   //sampleStart 
   val a = AtomicArray(arrayOf("aaa", "bbb", "ccc"))
println(a.toString()) // [aaa, bbb, ccc] 
   //sampleEnd
}
actual constructor(array: Array<T>)(source)

Creates a new AtomicArray filled with elements of the given array.

actual constructor(array: Array<T>)(source)

Creates a new AtomicArray filled with elements of the given array.

actual constructor(array: Array<T>)(source)

Creates a new AtomicArray filled with elements of the given array.

actual constructor(array: Array<T>)(source)

Creates a new AtomicArray filled with elements of the given array.

actual constructor(array: Array<T>)(source)

Creates a new AtomicArray filled with elements of the given array.