jsWasmMain.co.touchlab.stately.collections.Functions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stately-collections Show documentation
Show all versions of stately-collections Show documentation
Multithreaded Kotlin Multiplatform Utilities
package co.touchlab.stately.collections
/**
* Creates a copy-on-write list. On the JVM, will return
* [https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CopyOnWriteArrayList.html](CopyOnWriteArrayList).
* On Native, there is a native implementation which maintains and updates a frozen ArrayList.
*/
actual fun frozenCopyOnWriteList(collection: Collection?): MutableList {
throw UnsupportedOperationException("Not for JS or Wasm")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy