non blocking filters that make web api calls

Hi Team

I am making a custom filter in python that makes multiple web api calls. Overall the results take some 5-15 minutes to complete.

Is there a way to make the functions in the filter non-blocking? I notice that when the filter executes, the paraview UI becomes unresponsive which is not a great user experience.

On a related note, i saw that the paraview python environment ships with the aiohttp library, which is what i am using to make the api calls. However i could not find any documentation about any existing event loops that we could plugin into in the filters, so i ended up wrapping the calls with asyncio.run, which is not ideal. Is there a way better way to do this?

Best regards
Saswata