Skip to content

Question regarding ConfigureAwait(false) #37

Description

@MartyIX

Hi,

I have been trying to figure out a question of mine regarding:

https://github.com/brminnick/HackerNews/blob/aaad2453ea329005a5e50b1ec5cdaba350b8dc7b/src/HackerNews/ViewModels/NewsViewModel.cs#L76-L106

Basically, my question is: Is it OK to use ConfigureAwait(false) here: https://github.com/brminnick/HackerNews/blob/aaad2453ea329005a5e50b1ec5cdaba350b8dc7b/src/HackerNews/ViewModels/NewsViewModel.cs#L78

?

The reason I'm asking is that IsListRefreshing is not necessarily set on the UI thread:

https://github.com/brminnick/HackerNews/blob/aaad2453ea329005a5e50b1ec5cdaba350b8dc7b/src/HackerNews/ViewModels/NewsViewModel.cs#L104

And I wonder whether one can set view model properties (used in data bindings) on non-UI threads. Is it or is it not?

Best regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions