rd-framework / com.jetbrains.rd.framework.util

Package com.jetbrains.rd.framework.util

Types

NetUtils

object NetUtils

PortPair

data class PortPair

RdCoroutineScope

open class RdCoroutineScope

Extensions for External Classes

java.util.concurrent.CompletionStage

kotlin.collections.Collection

Properties

asCoroutineDispatcher

val <ERROR CLASS>.asCoroutineDispatcher: <ERROR CLASS>

Functions

adviseSuspend

fun <T> <ERROR CLASS><T>.adviseSuspend(lifetime: <ERROR CLASS>, scheduler: <ERROR CLASS>, handler: suspend (T) -> Unit): Unit

asCompletableFuture

fun <T> IRdTask<T>.asCompletableFuture(): <ERROR CLASS>

asCoroutineDispatcher

fun <ERROR CLASS>.asCoroutineDispatcher(allowInlining: Boolean): <ERROR CLASS>

await

suspend fun <T> IRdTask<T>.await(): T

launch

fun <ERROR CLASS>.launch(context: <ERROR CLASS> = EmptyCoroutineContext, start: <ERROR CLASS> = CoroutineStart.DEFAULT, block: suspend <ERROR CLASS>.() -> Unit): <ERROR CLASS>

launchChild

fun <ERROR CLASS>.launchChild(lifetime: <ERROR CLASS>, context: <ERROR CLASS> = EmptyCoroutineContext, start: <ERROR CLASS> = CoroutineStart.DEFAULT, block: suspend <ERROR CLASS>.() -> Unit): <ERROR CLASS>

nextFalseValue

suspend fun <ERROR CLASS><Boolean>.nextFalseValue(lifetime: <ERROR CLASS>): <ERROR CLASS>

nextFalseValueAsync

fun <ERROR CLASS><Boolean>.nextFalseValueAsync(lifetime: <ERROR CLASS>): <ERROR CLASS>

nextNotNullValue

suspend fun <T> <ERROR CLASS><T>.nextNotNullValue(lifetime: <ERROR CLASS>): <ERROR CLASS>

nextNotNullValueAsync

fun <T> <ERROR CLASS><T>.nextNotNullValueAsync(lifetime: <ERROR CLASS>): <ERROR CLASS>

nextTrueValue

suspend fun <ERROR CLASS><Boolean>.nextTrueValue(lifetime: <ERROR CLASS>): <ERROR CLASS>

nextTrueValueAsync

fun <ERROR CLASS><Boolean>.nextTrueValueAsync(lifetime: <ERROR CLASS>): <ERROR CLASS>

nextValue

suspend fun <T> <ERROR CLASS><T>.nextValue(lifetime: <ERROR CLASS>, condition: (T) -> Boolean = { true }): <ERROR CLASS>

nextValueAsync

fun <T> <ERROR CLASS><T>.nextValueAsync(lifetime: <ERROR CLASS>, condition: (T) -> Boolean = { true }): <ERROR CLASS><T>

noAwait

fun <ERROR CLASS>.noAwait(): Unit

setSuspend

fun <TReq, TRes> IRdEndpoint<TReq, TRes>.setSuspend(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: suspend (<ERROR CLASS>, TReq) -> TRes): Unit

startAsync

fun <T> <ERROR CLASS>.startAsync(context: <ERROR CLASS> = EmptyCoroutineContext, start: <ERROR CLASS> = CoroutineStart.DEFAULT, block: suspend <ERROR CLASS>.() -> T): <ERROR CLASS>

startChildAsync

fun <T> <ERROR CLASS>.startChildAsync(lifetime: <ERROR CLASS>, context: <ERROR CLASS> = EmptyCoroutineContext, start: <ERROR CLASS> = CoroutineStart.DEFAULT, block: suspend <ERROR CLASS>.() -> T): <ERROR CLASS>

synchronizeWith

fun <ERROR CLASS>.synchronizeWith(job: <ERROR CLASS>, supportsTerminationUnderExecution: Boolean = false): Unit

toRdTask

fun <T> <ERROR CLASS><T>.toRdTask(): <ERROR CLASS>

waitFor

suspend fun <ERROR CLASS>.waitFor(timeout: Duration, maxDelay: Long = 256, condition: suspend () -> Boolean): Boolean

withContext

suspend fun <T> withContext(lifetime: <ERROR CLASS>, context: <ERROR CLASS>, block: suspend <ERROR CLASS>.() -> T): T
suspend fun <T> withContext(scheduler: <ERROR CLASS>, block: suspend <ERROR CLASS>.() -> T): T