From b6c6ce36fbb9ca3f8219ba7e088b7ae0b7c2c008 Mon Sep 17 00:00:00 2001 From: Konstantin Nisht Date: Thu, 20 Feb 2025 14:26:33 +0100 Subject: [PATCH] Revert "[threading] IJPL-149765: Deprecate `writeAction`" This reverts commit b7f4cdd4922101646abe82b1e36d85aa86b7bb4b. (cherry picked from commit 6b7e2e4c564fe4baa88adf1a0699a694e0bcff4e) IJ-CR-155746 GitOrigin-RevId: 0505e8fa294c7c691caa4f1208a753b2dbb36327 --- .../src/com/intellij/openapi/application/coroutines.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/core-api/src/com/intellij/openapi/application/coroutines.kt b/platform/core-api/src/com/intellij/openapi/application/coroutines.kt index 19504d179622..21be031489dc 100644 --- a/platform/core-api/src/com/intellij/openapi/application/coroutines.kt +++ b/platform/core-api/src/com/intellij/openapi/application/coroutines.kt @@ -247,11 +247,8 @@ suspend fun edtWriteAction(action: () -> T): T { * * NB This function is an API stub. The implementation will change once running write actions would be allowed on other threads. This * function exists to make it possible to use it in suspending contexts before the platform is ready to handle write actions differently. - * - * Deprecation note: we are going to introduce a breaking change in the semantics of this method. Please use [edtWriteAction] for now. */ @Experimental -@Deprecated("Use 'edtWriteAction' instead", ReplaceWith("edtWriteAction(action)")) suspend fun writeAction(action: () -> T): T { return withContext(Dispatchers.EDT) { blockingContext {