From b4f3ab787bb9bb6fd5a69c08f5603ca17bfae115 Mon Sep 17 00:00:00 2001 From: Alexey Utkin Date: Wed, 1 Nov 2017 12:17:29 +0300 Subject: [PATCH] CPP-10639 Saving folding state triggers lazy blocks reparsing from EDT Test, API attribute change to "Experimental" (cherry picked from commit d80a7e7) --- .../openapi/progress/util/ProgressWithTimeoutInDispatch.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWithTimeoutInDispatch.java b/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWithTimeoutInDispatch.java index 2be3e45b9087..d445987c6bc1 100644 --- a/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWithTimeoutInDispatch.java +++ b/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWithTimeoutInDispatch.java @@ -21,6 +21,7 @@ import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.util.Computable; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -56,6 +57,7 @@ public class ProgressWithTimeoutInDispatch extends AbstractProgressIndicatorExBa * * @throws ProcessCanceledException */ + @ApiStatus.Experimental @Nullable public static T execInDispatchWithTimeout(@NotNull Computable action, long timeoutMs) throws ProcessCanceledException { final Application application = ApplicationManager.getApplication();