jmix-docs icon indicating copy to clipboard operation
jmix-docs copied to clipboard

Extend description of BackgroundTask methods

Open yuriy-khrebtov opened this issue 1 year ago • 0 comments

To describe execution contexts of BackgroundTask methods:

  • run - executed in another thread that has no direct access to UI components, has no access to session data, has access to security context;
  • other methods (progress, canceled, done etc.) - executed in a thread that has direct access to UI components, has access to session data, has access to security context

For the moment "executed in UI thread" statement leads to misunderstanding that these methods are invoked only by request from UI.

yuriy-khrebtov avatar Dec 18 '23 12:12 yuriy-khrebtov