emit.forEach
with restartable
transformer emits both events
#3888
Labels
bug
Something isn't working
needs triage
This issue requires triage
pkg:bloc_concurrency
This issue is related to the bloc_concurrency package
Description
Hi @felangel . I'm working with
restartable
transformer.Here is example with test
https://github.com/vasilich6107/bloc_stream_restartable
Steps To Reproduce
Run tests from test folder.
Expected Behavior
I'm making 2 async requests using
variables1
andvariables2
.On mock level I do some delays to emulate async requests.
With restartable transformer I assume that second
bloc.run(variables2);
will cancel previous handler.As a result I expect
In reality I'm getting one loading state and 2 loaded.
Screenshots
The text was updated successfully, but these errors were encountered: