Closed haashem closed 4 months ago
all elements from stream1 will be delivered to the result stream with microtask delays (async by default).
At this time, adding value to PublishSubject is ignored, because the stream1 is listening.
stream1: --2--3--4--|
stream2: 5
result : --2--3--4--|
Sent from my 2201117TG using FastHub
See https://github.com/ReactiveX/rxdart?tab=readme-ov-file#rx-observables-vs-dart-streams, and https://api.flutter.dev/flutter/dart-async/Stream-class.html for more details
A source of asynchronous data events.
In the below example,
concatWith
should emits the values added by stream 2:Expected:
Actual:
But if I replace
PublishSubject
withBehaviorSubject
it works as expected. I think it's a bug.