with Context
suspend fun <T> withContext(lifetime: Lifetime, context: CoroutineContext, block: suspend CoroutineScope.() -> T): T
Deprecated
Consider overload without lifetime, if you need to limit lifetime of the scope use lifetimedCoroutineScope
Replace with
import kotlinx.coroutines.withContext
Content copied to clipboard
lifetimedCoroutineScope(lifetime) { withContext(context, block) }Content copied to clipboard
Deprecated
Use withRdSchedulerContext
Replace with
import com.jetbrains.rd.util.threading.coroutines.withRdSchedulerContext
Content copied to clipboard
withRdSchedulerContext(scheduler, block)Content copied to clipboard
suspend fun <T> withContext(lifetime: Lifetime, scheduler: IScheduler, block: suspend CoroutineScope.() -> T): T
Deprecated
Consider using withRdSchedulerContext method, if you need to limit lifetime of the scope use lifetimedCoroutineScope
Replace with
import com.jetbrains.rd.util.threading.coroutines.withRdSchedulerContext
Content copied to clipboard
lifetimedCoroutineScope(lifetime) { withRdSchedulerContext(scheduler, block) }Content copied to clipboard