🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
Await async

In C#, you have the Async Await pattern, which sections your code at the compiler level and chunks it up in the dispatcher queue in order to avoid user input blocking/freezing.

Depending on what you want to do:

  • Just adapt to an existing Api that uses Async? Call it as a normal function and append GetResult() to it.
  • Avoid UI blocking in Turnkey? In Turnkey, this does not apply since UI interaction is in the browser.
  • Avoid UI blocking in MDriven generic code? See: IAsyncSupportService - MDrivenWiki