Package com. jetbrains. rd. framework. util
Types
Functions
Link copied to clipboard
fun <T> ISource<T>.adviseSuspend( lifetime: Lifetime, scheduler: IScheduler, handler: suspend (T) -> Unit)
Content copied to clipboard
fun <T> ISource<T>.adviseSuspend( lifetime: Lifetime, context: CoroutineContext, handler: suspend (T) -> Unit)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun IScheduler.asCoroutineDispatcher(allowInlining: Boolean): CoroutineDispatcher
Content copied to clipboard
Link copied to clipboard
fun Lifetime.createTerminatedAfter(duration: Duration, terminationContext: CoroutineContext): Lifetime
Content copied to clipboard
Link copied to clipboard
fun Lifetime.launch( scheduler: IScheduler, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job
Content copied to clipboard
fun Lifetime.launch( context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job
Content copied to clipboard
Link copied to clipboard
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard
suspend fun <T> lifetimedCoroutineScope(lifetime: Lifetime, action: suspend CoroutineScope.() -> T): T
Content copied to clipboard
Creates a coroutineScope that will be cancelled on the passed lifetime termination
Link copied to clipboard
suspend fun ISource<Boolean>.nextFalseValue(lifetime: Lifetime = Lifetime.Eternal): Boolean
Content copied to clipboard
Link copied to clipboard
fun ISource<Boolean>.nextFalseValueAsync(lifetime: Lifetime): Deferred<Boolean>
Content copied to clipboard
Link copied to clipboard
suspend fun <T : Any> ISource<T?>.nextNotNullValue(lifetime: Lifetime = Lifetime.Eternal): T
Content copied to clipboard
Link copied to clipboard
fun <T : Any> ISource<T?>.nextNotNullValueAsync(lifetime: Lifetime): Deferred<T>
Content copied to clipboard
Link copied to clipboard
suspend fun ISource<Boolean>.nextTrueValue(lifetime: Lifetime = Lifetime.Eternal): Boolean
Content copied to clipboard
Link copied to clipboard
fun ISource<Boolean>.nextTrueValueAsync(lifetime: Lifetime): Deferred<Boolean>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <TReq, TRes> IRdEndpoint<TReq, TRes>.setSuspend( cancellationScheduler: IScheduler? = null, handlerScheduler: IScheduler? = null, handler: suspend (Lifetime, TReq) -> TRes)
Content copied to clipboard
Link copied to clipboard
fun <T> Lifetime.startAsync( scheduler: IScheduler, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): Deferred<T>
Content copied to clipboard
fun <T> Lifetime.startAsync( context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): Deferred<T>
Content copied to clipboard
Link copied to clipboard
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard
fun LifetimeDefinition.synchronizeWith(job: Job, supportsTerminationUnderExecution: Boolean = false)
Content copied to clipboard
Link copied to clipboard
suspend fun <T> withContext(scheduler: IScheduler, block: suspend CoroutineScope.() -> T): T
Content copied to clipboard
suspend fun <T> withContext( lifetime: Lifetime, scheduler: IScheduler, block: suspend CoroutineScope.() -> T): T
Content copied to clipboard
suspend fun <T> withContext( lifetime: Lifetime, context: CoroutineContext, block: suspend CoroutineScope.() -> T): T
Content copied to clipboard