uhe
03/15/2017, 3:51 PMprivate fun increment() {
launch(job + UI) {
model.incrementCounter()
}
}
private fun subscribeToModel() = launch(job + UI) {
val channel = model.getCounterUpdates(context)
for (counterValue in channel) {
rootView.user_counter.text = "$counterValue"
}
}