Await async
Hans Karlsen (talk | contribs) No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
In | <message>Write the content here to display this box</message> | ||
In C#, you have the async await pattern which sections your code on 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: | Depending on what you want to do: | ||
* Just adapt to an existing api that uses async?: Call it as a normal function and append with GetResult() | * Just adapt to an existing api that uses async?: Call it as a normal function and append with GetResult() | ||
* Avoid UI blocking in Turnkey? In Turnkey this does not apply since UI interaction is in browser | * Avoid UI blocking in Turnkey? In Turnkey, this does not apply since UI interaction is in browser. | ||
* Avoid UI blocking in MDriven generic code? [[Training:IAsyncSupportService| | * Avoid UI blocking in MDriven generic code? See: [[Training:IAsyncSupportService|IAsyncSupportService - MDrivenWiki]] | ||
[[Category:Advanced]] |
Latest revision as of 05:12, 19 June 2024
In C#, you have the async await pattern which sections your code on 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 with GetResult()
- Avoid UI blocking in Turnkey? In Turnkey, this does not apply since UI interaction is in browser.
- Avoid UI blocking in MDriven generic code? See: IAsyncSupportService - MDrivenWiki
This page was edited 93 days ago on 06/19/2024. What links here