-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Initial Value to Subject using start_with doesn't work for subscribe with AsyncIOScheduler #579
Labels
Comments
Item 456 is not emitted because it is pushed on the subject before the subscription happened. You either need to delay the emission, or use a ReplaySubject so that the items are buffered until the subscription to the subject is done:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I am trying to combine Subject with start_with operator as I want the each observer to get the initial image using start_with and the subsequence update via Subject on_next.
However, i am not getting the expected result:
Output:
subject1: 999
Expected Output:
subject1: 999
subject1: 456
If I omit scheduler=aio_scheduler from subscribe(), i got the expected output correctly.
From what i found, if i use AsyncIOScheduler, sub_obs fails to add the observers to the list during the subscribe().
The text was updated successfully, but these errors were encountered: