On clicking a button, a query is executed in a background worker. It is asynchronous so that I can change the button to "Cancel" so the user can cancel the process if it runs longer than expected. This all works fine.On clicking a button, a query is executed in a