Skip to content

WhenAnyValue might not send latest value #3189

Answered by anaisbetts
erikm-g asked this question in Q&A
Discussion options

You must be logged in to vote

WhenAny is not "thread-safe", it has the same thread safety rules as any other C# object. You should not write to ViewModel properties on other threads, as they inherit the thread affinity of the Views they are bound to. If you wouldn't write from other threads to a View, you shouldn't do it to a ViewModel!

Replies: 34 comments 31 replies

Comment options

You must be logged in to vote
2 replies
@kmgallahan
Comment options

@glennawatson
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
16 replies
@erikm-g
Comment options

@erikm-g
Comment options

@glennawatson
Comment options

@erikm-g
Comment options

@glennawatson
Comment options

Comment options

You must be logged in to vote
13 replies
@erikm-g
Comment options

@glennawatson
Comment options

@glennawatson
Comment options

@erikm-g
Comment options

@anaisbetts
Comment options

Answer selected by anaisbetts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #3122 on February 17, 2022 17:14.