LIT Element Thread stops when dialog is open

how can I prevent a thread of an lit element to be stopped when a dialog is opened?

My struggle explained:
My lit element is showing a running simulation and when I open a dialog (for example to see event logs) the simulation thread is stopped. How can I prevent the thread to be stopped so that the simulation is running in the background even when a dialog is opened.

Thanks in advance,

A modal dialog will block everything that runs behind the dialog: Dialog | Components | Vaadin Docs

Then the answer depends a bit on your usecase, you can check the documentation here: Server-Side Modality | Advanced Topics | Vaadin Docs

ok thanks