Package-level declarations

Types

Link copied to clipboard
typealias action<T> = suspend () -> T
Link copied to clipboard
typealias coroutineErrorListener = (throwable: Throwable) -> Unit
Link copied to clipboard
open class CoroutinesUtils

This class is completely for Kotlin. For Java, please see

Link copied to clipboard
class CustomCoroutineScope(context: CoroutineContext, errorHandler: coroutineErrorListener? = null) : CoroutineScope, Closeable
Link copied to clipboard
This class is completely for Java.
Link copied to clipboard
class UncaughtCoroutineExceptionHandler(errorHandler: coroutineErrorListener? = null) : AbstractCoroutineContextElement, CoroutineExceptionHandler

Functions

Link copied to clipboard
fun <T> asyncInBackground(block: action<T>): Deferred<Any?>
Link copied to clipboard
fun <T> asyncOnUI(block: action<T>): Deferred<Any?>
Link copied to clipboard
fun <T> runInBackground(block: action<T>): Job
Link copied to clipboard
fun <T> runOnUI(block: action<T>): Job
Link copied to clipboard
suspend fun <T> withBackground(block: action<T>): T
Link copied to clipboard
suspend fun <T> withDefault(block: action<T>): T
Link copied to clipboard
suspend fun <T> withUI(block: action<T>): T
Link copied to clipboard
suspend fun <T> withUnconfined(block: action<T>): T