In Jetbrains MPS I want to execute a web request when the user hits a shortcut or an action from the context menu.
After successfully executing this request I want to show the user the response by manipulating the MPS model.
When I execute the web request within the UI Thread, the ui will be blocked until I get a response or the request times out.
This is of cause a bad ux experience.
How can I execute the request asynchronously?