suspendedTryCatchBoolean

inline suspend fun suspendedTryCatchBoolean(context: CoroutineContext = Dispatchers.Default, crossinline block: suspend () -> Unit): Boolean

suspendedTryCatchBoolean used when you want to return false if an exception is thrown in suspend functions.

Example:

suspend fun foo() = suspendedTryCatchBoolean {
// do something
}

Since

1.2.0

See also