Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Should I use "ConfigureAwait(bool)" or not?

$
0
0

I followed the Visual Studio suggestion to install "Microsoft.CodeAnalysis.FxCopAnalyzers" and suddenly I get tons of new warnings.
One of them is:

Consider calling ConfigureAwait on the awaited task

So basically my await calls should change from:
await NavigationService.NavigateAsync("Navigation/Login")
to
await NavigationService.NavigateAsync("Navigation/Login").ConfigureAwait(false)

I tried to read the documentation but I am not sure about the benefit of it.
Would you recommend to make that change to all my await calls?

Thanks!


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>