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

decrement

@JvmOverloads fun MutableField<Double>.decrement(by: Double = 1.0): Unit
@JvmOverloads fun MutableField<Float>.decrement(by: Float = 1F): Unit
@JvmOverloads fun MutableField<Int>.decrement(by: Int = 1): Unit
@JvmOverloads fun MutableField<Long>.decrement(by: Long = 1): Unit

Decrements the MutableField by the given quantity (1 by default).

The operation is atomic and thread-safe.