Extend javadoc for <backgroundPostStartupActivity> (IDEA-CR-48118)

GitOrigin-RevId: 65f7ebba26fbdbf7da7d871b618d73508f37e678
This commit is contained in:
Dmitry Jemerov
2019-06-13 03:29:43 +03:00
committed by intellij-monorepo-bot
parent 3c453a4621
commit 1ab5cead2b
@@ -32,9 +32,14 @@ public interface StartupActivity {
ExtensionPointName<StartupActivity> 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<StartupActivity> BACKGROUND_POST_STARTUP_ACTIVITY = ExtensionPointName.create("com.intellij.backgroundPostStartupActivity");