mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-08 18:18:56 +01:00
Sync is now essentially fully atomic on the client side
Sync now aborts on most errors instead of continuing Sync now holds screen, CPU and WIFI locks
This commit is contained in:
@@ -43,10 +43,6 @@ fun String?.nullIfBlank(): String? = if(isNullOrBlank())
|
||||
else
|
||||
this
|
||||
|
||||
fun <T> ignore(expr: () -> T): T? {
|
||||
return try { expr() } catch (t: Throwable) { null }
|
||||
}
|
||||
|
||||
fun <K,V> Set<Map.Entry<K,V>>.forEach(action: (K, V) -> Unit) {
|
||||
forEach { action(it.key, it.value) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user