Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class CSResult<Value>(val state: CSResult.State, val value: Value? = null, var throwable: Throwable? = null, val message: String? = null, val code: Int? = null)

Properties

Link copied to clipboard
var mainScope: CoroutineScope

Functions

Link copied to clipboard
fun <Value> CancellableContinuation<CSResult<Value>>.canceled()
Link copied to clipboard
suspend fun Job.cancelIfNotActive(scope: CoroutineScope, onCancel: () -> Unit): Job
Link copied to clipboard
fun createMainScope(): CoroutineScope
Link copied to clipboard
fun CoroutineScope.createSupervisorChild(): CoroutineScope
Link copied to clipboard
suspend fun currentDispatcher(): CoroutineDispatcher?
Link copied to clipboard
fun Job.dumpJobTree()
Link copied to clipboard
fun <Value> CancellableContinuation<CSResult<Value>>.failure(message: String)
fun <Value> CancellableContinuation<CSResult<Value>>.failure(throwable: Throwable)
fun <Value> CancellableContinuation<CSResult<Value>>.failure(throwable: Throwable, message: String?)
Link copied to clipboard
inline suspend operator fun <T> CoroutineContext.invoke(crossinline block: suspend () -> T): T
@JvmName(name = "CoroutineContextNullInvoke")
inline suspend operator fun <T> CoroutineContext?.invoke(crossinline block: suspend () -> T): T
Link copied to clipboard
Link copied to clipboard
fun Job.onCancel(onCancel: () -> Unit): Job
Link copied to clipboard
suspend fun CoroutineScope.shutDown(timeout: Duration = 5.seconds)
Link copied to clipboard
fun CancellableContinuation<CSResult<Unit>>.success()
fun <Value> CancellableContinuation<CSResult<Value>>.success(value: Value)