suspendedTryCatchBool

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

suspendedTryCatchBool used when you want to return a boolean value or return false if an exception is thrown in suspend functions.

Example:

suspend fun foo() = suspendedTryCatchBool {
// do something to return a boolean value
}

Since

1.2.0

See also