Actually it's possible to do this, there are multiple solutions.
Check out this page for an overview:
https://relm4.org/book/stable/threads_and_async/index.html
I used a Component and Commands, basically just as described here:
https://relm4.org/book/stable/threads_and_async/commands.html