File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ class RxReduxStore<A, S> {
62
62
bool Function (S previous, S next) equals,
63
63
RxReduxLogger logger,
64
64
}) {
65
- final actionSubject = StreamController <A >(sync : true );
65
+ final actionController = StreamController <A >(sync : true );
66
66
final actionOutputController = StreamController <A >.broadcast (sync : true );
67
67
68
- final stateStream = actionSubject .stream
68
+ final stateStream = actionController .stream
69
69
.reduxStore <S >(
70
70
initialStateSupplier: () => initialState,
71
71
sideEffects: [
@@ -86,14 +86,14 @@ class RxReduxStore<A, S> {
86
86
);
87
87
88
88
return RxReduxStore ._(
89
- actionSubject .add,
89
+ actionController .add,
90
90
() => currentState,
91
91
stateStream,
92
92
actionOutputController.stream,
93
- () => Future . wait ([
94
- actionSubject .close (),
95
- subscription.cancel (),
96
- ]) ,
93
+ () async {
94
+ await actionController .close ();
95
+ await subscription.cancel ();
96
+ } ,
97
97
);
98
98
}
99
99
You can’t perform that action at this time.
0 commit comments