Sync now aborts on most errors instead of continuing Sync now holds screen, CPU and WIFI locks
8 lines
121 B
Kotlin
8 lines
121 B
Kotlin
package exh.util
|
|
|
|
inline fun <T> ignore(expr: () -> T): T? {
|
|
return try { expr() } catch (t: Throwable) { null }
|
|
}
|
|
|
|
|