what is difference between _ and ()? #3522
Answered
by
glennawatson
INTERNALINTERFERENCE
asked this question in
Q&A
-
I have following in constructor:
the first one will be executed why? |
Beta Was this translation helpful? Give feedback.
Answered by
glennawatson
Apr 17, 2023
Replies: 1 comment 10 replies
-
Execute() returns a IObservable. You need to Subscribe() to it to have it execute. The observable is lazy and won't execute straight away. You can subscribe multiple times to have it execute again is a major difference as well. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The subscribe direct on the command doesn't take a parameter. Execute generates an observable based on the passed in parameter. It's an observable so it's lazy so won't run until subscribed.