Skip to content

safe get

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.extensions/ApiResponseExt/safeGet

safeGet

[androidJvm]
inline fun <T> ApiResponse<List<T>>.safeGet(crossinline error: (Exception) -> Unit = { exception -> Timber.e(exception) }): List<T>

Clone this wiki locally