GitOrigin-RevId: ec11a25498a3621832d103915a5f81d572be78a3
This commit is contained in:
Daniil Ovchinnikov
2024-09-24 11:21:08 +00:00
committed by intellij-monorepo-bot
parent e08d85364e
commit 8cd3eddfb6
2 changed files with 0 additions and 2 deletions
@@ -305,7 +305,6 @@ suspend fun <T> writeIntentReadAction(action: () -> T): T {
private fun readWriteActionSupport() = ApplicationManager.getApplication().getService(ReadWriteActionSupport::class.java)
@Suppress("CONFLICTING_OVERLOADS") // KT-61878
@Deprecated("Moved to modality.kt", level = DeprecationLevel.HIDDEN)
fun ModalityState.asContextElement(): CoroutineContext = asContextElement()
@@ -18,7 +18,6 @@ suspend fun isModalAwareContext(): Boolean {
return currentCoroutineContext().contextModality() != ModalityState.any()
}
@Suppress("CONFLICTING_OVERLOADS") // KT-61878
fun ModalityState.asContextElement(): CoroutineContext {
return ModalityStateElement(this)
}