Revert "[threading] IJPL-149765: Deprecate writeAction"

This reverts commit b7f4cdd4922101646abe82b1e36d85aa86b7bb4b.


(cherry picked from commit 6b7e2e4c564fe4baa88adf1a0699a694e0bcff4e)

IJ-CR-155746

GitOrigin-RevId: 0505e8fa294c7c691caa4f1208a753b2dbb36327
This commit is contained in:
Konstantin Nisht
2025-02-20 14:26:33 +01:00
committed by intellij-monorepo-bot
parent 554dcc21ab
commit b6c6ce36fb

View File

@@ -247,11 +247,8 @@ suspend fun <T> 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 <T> writeAction(action: () -> T): T {
return withContext(Dispatchers.EDT) {
blockingContext {