changeValue

suspend fun changeValue(newValue: Boolean)

Updates the boolean value and notifies waiting coroutines if the value changes.