CPP-10639 Saving folding state triggers lazy blocks reparsing from EDT

Test, API attribute change to "Experimental"

(cherry picked from commit d80a7e7)
This commit is contained in:
Alexey Utkin
2017-11-03 18:59:29 +03:00
parent b8bfcd38db
commit b4f3ab787b
@@ -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> T execInDispatchWithTimeout(@NotNull Computable<T> action, long timeoutMs) throws ProcessCanceledException {
final Application application = ApplicationManager.getApplication();