Package com. jetbrains. rd. util. threading. coroutines
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
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
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
Link copied to clipboard
fun ISource<Boolean>.nextFalseValueAsync(lifetime: Lifetime): Deferred<Boolean>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link 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 LifetimeDefinition.synchronizeWith(scope: CoroutineScope, supportsTerminationUnderExecution: Boolean = false)
Content copied to clipboard
fun LifetimeDefinition.synchronizeWith(job: Job, supportsTerminationUnderExecution: Boolean = false)
Content copied to clipboard
Link copied to clipboard
suspend fun withLifetime(context: CoroutineContext = EmptyCoroutineContext, action: suspend CoroutineScope.(Lifetime) -> Unit)
Content copied to clipboard
Link copied to clipboard
suspend fun <T> withRdSchedulerContext(scheduler: IScheduler, block: suspend CoroutineScope.() -> T): T
Content copied to clipboard