Documentation / dataflow / com.femastudios.dataflow.extensions / clear
Go to reference

clear

fun <T> MutableField<Collection<T>>.clear(): Unit
fun <T> MutableField<Iterable<T>>.clear(): Unit
fun <T> MutableField<List<T>>.clear(): Unit
fun <K, V> MutableField<Map<K, V>>.clear(): Unit
fun <T> MutableField<Set<T>>.clear(): Unit

Removes all the elements in the collection. The operation is atomic and thread-safe.