Background task in plugin

Hi, is there a way for plugin tu run some processing in background and update UI along the way. Specifically I would need to display a progress bar in the panel for processing that takes a long time.

Background processing is not a problem since a plugin runs async in a different process. For the progress bar however you'll have to do it yourself using a panel for example