Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Good thing you noticed. I noticed it too in some cases.

The Initialize task gets created here: https://github.com/MvvmCross/MvvmCross/blob/release/9.2.0/MvvmCross/ViewModels/MvxDefaultViewModelLocator.cs#L170
And then it gets awaited here: https://github.com/MvvmCross/MvvmCross/blob/release/9.2.0/MvvmCross/Navigation/MvxNavigationService.cs#L301

As you can see there is ConfigureAwait(false) that supposes to switch the context. But it only gets switched on inner await. And you have await CreateFilters() that gets awaited. But if there is not any inner await inside your CreateFilters or there are some long running operations before any await then you are still on the main thread. The same g…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@DavidMarquezF
Comment options

@entdark
Comment options

@entdark
Comment options

@DavidMarquezF
Comment options

Answer selected by DavidMarquezF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants