Package-level declarations

Types

Link copied to clipboard
class AutoDisposableJob(view: View, wrapped: Job) : Job, View.OnAttachStateChangeListener
Link copied to clipboard

Properties

Link copied to clipboard
val defaultDispatcher: CoroutineDispatcher
Link copied to clipboard
val ioDispatcher: CoroutineDispatcher
Link copied to clipboard
val mainDispatcher: MainCoroutineDispatcher
Link copied to clipboard
val unconfinedDispatcher: CoroutineDispatcher

Functions

Link copied to clipboard
Link copied to clipboard
fun Job?.cancelIfActive()

Cancel the Job if it's active.

Link copied to clipboard
inline fun CoroutineScope.default(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, crossinline function: suspend () -> Unit): Job
Link copied to clipboard
fun AppCompatActivity.defaultCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
fun Fragment.defaultCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun <T> defaultCoroutineGlobal(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, block: suspend () -> T): Job
Link copied to clipboard
suspend fun doParallel(vararg blocks: suspend () -> Any)
Link copied to clipboard
suspend fun <T> doParallelWithResult(vararg blocks: suspend () -> T): MutableList<T>
Link copied to clipboard
fun highPriorityContext(): ExecutorCoroutineDispatcher
Link copied to clipboard
inline fun CoroutineScope.io(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, crossinline function: suspend () -> Unit): Job
Link copied to clipboard
fun AppCompatActivity.ioCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
fun Fragment.ioCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun <T> ioCoroutineGlobal(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, block: suspend () -> T): Job
Link copied to clipboard
inline fun CoroutineScope.main(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, crossinline function: suspend () -> Unit)
Link copied to clipboard
fun AppCompatActivity.mainCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
fun Fragment.mainCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun <T> mainCoroutineGlobal(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, block: suspend () -> T): Job
Link copied to clipboard
inline fun AndroidViewModel.makeIOCall(crossinline onCallExecuted: () -> Unit = {}, crossinline ioCall: suspend () -> Unit): Job
inline fun CoroutineScope.makeIOCall(crossinline onCallExecuted: () -> Unit = {}, crossinline ioCall: suspend () -> Unit): Job
inline fun AndroidViewModel.makeIOCall(crossinline onCallExecuted: () -> Unit = {}, crossinline onErrorAction: (throwable: Throwable) -> Unit = { _ -> }, crossinline ioCall: suspend () -> Unit): Job
inline fun CoroutineScope.makeIOCall(crossinline onCallExecuted: () -> Unit = {}, crossinline onErrorAction: (throwable: Throwable) -> Unit = { _ -> }, crossinline ioCall: suspend () -> Unit): Job
inline fun <T> AndroidViewModel.makeIOCall(crossinline onCallExecuted: () -> Unit = {}, crossinline onErrorAction: (throwable: Throwable) -> Unit = { _ -> }, crossinline ioCall: suspend () -> T, crossinline onCalled: (model: T) -> Unit): Job
inline fun <T> CoroutineScope.makeIOCall(crossinline onCallExecuted: () -> Unit = {}, crossinline onErrorAction: (throwable: Throwable) -> Unit = { _ -> }, crossinline ioCall: suspend () -> T, crossinline onCalled: (model: T) -> Unit): Job
Link copied to clipboard
inline suspend fun <T> nonCancellable(crossinline block: CoroutineScope.() -> T): T
Link copied to clipboard
inline suspend fun <T, R> T.nonCancellable(crossinline block: (T) -> R): R
inline fun CoroutineScope.nonCancellable(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, crossinline function: suspend () -> Unit): Job
Link copied to clipboard
fun AppCompatActivity.nonCancellableCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
fun Fragment.nonCancellableCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun <E> ProducerScope<E>.offerIfNotClosed(element: E)
Link copied to clipboard
inline suspend fun <T> onDefault(crossinline block: CoroutineScope.() -> T): T
Link copied to clipboard
inline suspend fun <T, R> T.onDefault(crossinline block: (T) -> R): R
Link copied to clipboard
inline suspend fun <T> onIO(crossinline block: CoroutineScope.() -> T): T
Link copied to clipboard
inline suspend fun <T, R> T.onIO(crossinline block: (T) -> R): R
Link copied to clipboard
inline suspend fun <T> onMain(crossinline block: CoroutineScope.() -> T): T
Link copied to clipboard
inline suspend fun <T, R> T.onMain(crossinline block: (T) -> R): R
Link copied to clipboard
fun <T> Flow<T>.repeat(): Flow<T>
Link copied to clipboard
suspend fun <E> ProducerScope<E>.sendIfNotClosed(element: E)
Link copied to clipboard
fun View.setOnClickCoroutine(owner: LifecycleOwner, listener: suspend (view: View) -> Unit)
Link copied to clipboard
fun EditText.textChanges(skipInitialValue: Boolean = false, debounce: Long = 300): Flow<CharSequence?>
fun TextView.textChanges(skipInitialValue: Boolean = false, debounce: Long = 300): Flow<CharSequence?>
Link copied to clipboard
Link copied to clipboard
inline fun CoroutineScope.unconfined(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, crossinline function: suspend () -> Unit): Job
Link copied to clipboard
fun AppCompatActivity.unconfinedCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
fun Fragment.unconfinedCoroutine(action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun <T> unconfinedCoroutineGlobal(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, block: suspend () -> T): Job
Link copied to clipboard
fun ViewModel.viewModelDefaultCoroutine(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun ViewModel.viewModelIOCoroutine(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun ViewModel.viewModelMainCoroutine(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun ViewModel.viewModelNonCancellableCoroutine(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
fun ViewModel.viewModelUnconfinedCoroutine(coroutineStart: CoroutineStart = CoroutineStart.DEFAULT, action: suspend (scope: CoroutineScope) -> Unit = {}): Job
Link copied to clipboard
suspend fun <T> withDefaultContext(block: suspend () -> T): T
Link copied to clipboard
suspend fun <T> withIOContext(block: suspend () -> T): T
Link copied to clipboard
suspend fun <T> withMainContext(block: suspend () -> T): T
Link copied to clipboard
suspend fun <T> withNonCancellableContext(block: suspend () -> T): T
Link copied to clipboard
suspend fun <T> withUnconfinedContext(block: suspend () -> T): T