Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class AsyncCacheGen<T>(gen: suspend (key: String) -> T)
Link copied to clipboard
class AsyncInmemoryCache(val timeProvider: TimeProvider = TimeProvider)
Link copied to clipboard
class AsyncInmemoryEntry<T : Any>(val clazz: KClass<T>, val cache: AsyncInmemoryCache, val key: String, val ttl: Duration)
Link copied to clipboard
Link copied to clipboard
class ObservableProperty<T>(initial: T)

Properties

Functions

Link copied to clipboard
fun <T> async(context: CoroutineContext, callback: suspend () -> T): Deferred<T>
Link copied to clipboard
fun <T> CoroutineScope.async(callback: suspend () -> T): Deferred<T>
Link copied to clipboard
fun <T> asyncAsap(context: CoroutineContext, callback: suspend () -> T): Deferred<T>
Link copied to clipboard
fun <T> CoroutineScope.asyncAsap(callback: suspend () -> T): Deferred<T>
Link copied to clipboard
fun <T> asyncImmediately(context: CoroutineContext, callback: suspend () -> T): Deferred<T>
Link copied to clipboard
fun <T> CoroutineScope.asyncImmediately(callback: suspend () -> T): Deferred<T>
Link copied to clipboard
suspend fun <T> ReceiveChannel<T>.chunks(count: Int): ReceiveChannel<List<T>>
Link copied to clipboard
fun launch(context: CoroutineContext, callback: suspend () -> Unit): Job
Link copied to clipboard
fun launchAsap(context: CoroutineContext, callback: suspend () -> Unit): Job
Link copied to clipboard
fun CoroutineScope.launchAsap(callback: suspend () -> Unit): Job
Link copied to clipboard
fun launchImmediately(context: CoroutineContext, callback: suspend () -> Unit): Job
Link copied to clipboard
fun CoroutineScope.launchImmediately(callback: suspend () -> Unit): Job
Link copied to clipboard
fun CoroutineContext.launchUnscoped(block: suspend () -> Unit)
fun CoroutineScope.launchUnscoped(block: suspend () -> Unit)
Link copied to clipboard
suspend fun <T> CoroutineContext.launchUnscopedAndWait(block: suspend () -> T): T
Link copied to clipboard
suspend fun <E> produce(capacity: Int = 0, block: suspend ProducerScope<E>.() -> Unit): ReceiveChannel<E>
Link copied to clipboard
fun suspendTest(timeout: Duration? = DEFAULT_SUSPEND_TEST_TIMEOUT, preferSyncIo: Boolean? = null, callback: suspend CoroutineScope.() -> Unit): AsyncEntryPointResult
fun suspendTest(cond: () -> Boolean, timeout: Duration? = DEFAULT_SUSPEND_TEST_TIMEOUT, preferSyncIo: Boolean? = DEFAULT_TEST_SYNC_IO, callback: suspend CoroutineScope.() -> Unit): AsyncEntryPointResult
Link copied to clipboard
fun suspendTestNoBrowser(preferSyncIo: Boolean? = DEFAULT_TEST_SYNC_IO, callback: suspend CoroutineScope.() -> Unit): AsyncEntryPointResult
Link copied to clipboard
fun suspendTestNoJs(preferSyncIo: Boolean? = DEFAULT_TEST_SYNC_IO, callback: suspend CoroutineScope.() -> Unit): AsyncEntryPointResult
Link copied to clipboard
Link copied to clipboard
suspend fun <T> Iterable<T>.toChannel(): ReceiveChannel<T>
suspend fun <T> Flow<T>.toChannel(): ReceiveChannel<T>
Link copied to clipboard
suspend fun <T> waitSubscriber(block: ((T) -> Unit) -> Cancellable): T
Link copied to clipboard
suspend fun <T> waitSubscriberCloseable(block: ((T) -> Unit) -> AutoCloseable): T
Link copied to clipboard
suspend fun <T> withTimeoutNullable(time: Duration?, block: suspend CoroutineScope.() -> T): T