Package-level declarations

Properties

Link copied to clipboard
val MainCoroutineDispatcher.immediateOrDefault: MainCoroutineDispatcher

Obtain a MainCoroutineDispatcher.immediate, and if not supported by the current platform, fall back to a default MainCoroutineDispatcher.

Functions

Link copied to clipboard
inline fun <T> Flow<T>.catchExceptions(crossinline block: suspend FlowCollector<T>.(Exception) -> Unit): Flow<T>

Catches exceptions only, rethrowing any throwables

Link copied to clipboard
inline fun <T : MVIState> nameByType(): String?

Get the name of the class, removing the "State" suffix, if present.

Link copied to clipboard
inline fun <T> Any?.typed(): T?

Cast this to type T or return null.

Link copied to clipboard
inline fun <T : R, R> R.withType(block: T.() -> R): R

Do the operation on this if the type of this is T, and return R, otherwise return this