elizarov
03/04/2017, 12:40 PMRxBindinds
, but for coroutines. With this hypothetical library this code can simplify to:
h.logout.onClick { // assuming that onClick is a coruotine builder that starts a UI-bound coroutine
CronScheduling.cancelAll(db, ctx) // I don't understand what it is supposed to do, but let's assume it just some call
db.clearDatabase() // assuming that clearDatabase is just a suspending function
Preferences.clearPrefsOnLogout()
}