TachiyomiSY-Plus/app/src/main/java/exh/util/ExceptionUtil.kt
NerdNumber9 8f51abfc97 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
2018-02-02 12:11:09 -05:00

8 lines
121 B
Kotlin

package exh.util
inline fun <T> ignore(expr: () -> T): T? {
return try { expr() } catch (t: Throwable) { null }
}