You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In C#, when I subscribe to an already completed BehaviorSubject, I only get an onComplete, as illustrated by this example:
staticvoidMain(){varo=(newList<int>{1,2,3}).ToObservable();varsubject=newBehaviorSubject<int>(0);o.Subscribe(subject);subject.Subscribe(
i =>Console.WriteLine(i),
e =>Console.WriteLine(e.Message),()=>Console.WriteLine("complete"));Console.WriteLine("done");Console.ReadLine();}
outputs:
complete
done
In the current Java implementation, I only get the last element and no onComplete:
In C#, when I subscribe to an already completed
BehaviorSubject
, I only get anonComplete
, as illustrated by this example:outputs:
In the current Java implementation, I only get the last element and no
onComplete
:outputs:
And intuitively, I would expect that I get both the last element and
onComplete
.So we have 3 options... Which one should RxJava choose?
The text was updated successfully, but these errors were encountered: