lifetimedCoroutineScope

suspend fun <T> lifetimedCoroutineScope(lifetime: Lifetime, action: suspend CoroutineScope.() -> T): T

Deprecated

Api moved to rd-core

Replace with

import com.jetbrains.rd.util.threading.coroutines.lifetimedCoroutineScope
lifetimedCoroutineScope(lifetime, action)

Creates a coroutineScope that will be cancelled on the passed lifetime termination