From 1ab5cead2b96995c96f128408dabc09c038f51da Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 12 Jun 2019 16:47:54 +0200 Subject: [PATCH] Extend javadoc for (IDEA-CR-48118) GitOrigin-RevId: 65f7ebba26fbdbf7da7d871b618d73508f37e678 --- .../com/intellij/openapi/startup/StartupActivity.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java b/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java index 9e2070a5366a..1cc576ceb532 100644 --- a/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java +++ b/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java @@ -32,9 +32,14 @@ public interface StartupActivity { ExtensionPointName POST_STARTUP_ACTIVITY = ExtensionPointName.create("com.intellij.postStartupActivity"); /** - * Executed some time after startup on a background thread with no progress indicator. Such activities may produce notifications - * but should not be used for any work that needs to be otherwise visible to users. Such activities are run regardless - * of the current indexing mode and should not be used for any work that requires access to indices. + * Executed some time after startup on a background thread with no visible progress indicator. Such activities may produce + * notifications but should not be used for any work that needs to be otherwise visible to users (including work that consumes + * CPU over a noticeable period of time). + * + * Such activities are run regardless of the current indexing mode and should not be used for any work that requires access + * to indices. The current project may get disposed while the activity is running, and the activity may not be interrupted + * immediately when this happens, so if you need to access other components, you're responsible for doing this in a + * thread-safe way (e.g. by taking a read action to collect all the state you need). */ ExtensionPointName BACKGROUND_POST_STARTUP_ACTIVITY = ExtensionPointName.create("com.intellij.backgroundPostStartupActivity");