With the Rx Subject, is it thread-safe to call OnNext() from multiple threads?
So the sequence can be generated from multiple sources.
Will merge do the same thing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Rx contract requires that notifications be sequential, and is a logical necessity for several operators. That said, you can use the available
Synchronizemethods to get this behaviour.You can now make concurrent calls to
syncedSubject.For an observer which must be synchronized, you can also use:
Test: