When I put a UI element via @ui.in_background in the background, how can I react to the result in my normal (foreground) flow?
Say I have dialogs.list_dialog and I want to do something with the result of the list in my main function. Can I somehow wait for the result ?