<@U0B86L2VA> In order to make it simple, somebody ...
# coroutines
e
@adeln In order to make it simple, somebody has to write a library similar to
RxBindinds
, but for coroutines. With this hypothetical library this code can simplify to:
Copy code
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()    
}