Please help me understand async

I am making a wpf application. When the user clicks a button the application performs work that takes a couple of minutes. This blocks the ui from responding. I tried adding async to the button_click method but then I get a warning that there is no await in the method so it will run synchronously. How can I run this method asynchronously so it does not block the UI?

by e0ec394791304a328166 via /r/csharp

Leave a Reply