title: How to use async method in DelegateCommand
body: <p>I want to link async method to a delegate command in prism framework in Xamarin.Forms and my question is how to do it?</p>
  
  <p>Is below solution correct? Is there exist any pitfall? (deadlock, UI slow or freezing, bad practices, ...)</p>
  
  <pre><code>{      // My view model constructor
         ... 
         MyCommand = new DelegateCommand(async () =&gt; await MyJobAsync());
         ...
  }
  
  private async Task MyJobAsync()
  {
         ... // Some await calls
         ... // Some UI element changed such as binded Observable collections
  }
  </code></pre>