This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ extension AggregateSample<T> on Stream<T> {
138
138
// Handle opt-out nulls
139
139
cancels.removeWhere ((Object ? f) => f == null );
140
140
if (cancels.isEmpty) return null ;
141
- return Future .wait (cancels) .then ((_) => null );
141
+ return cancels .wait.then ((_) => null );
142
142
};
143
143
};
144
144
return controller.stream;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ extension AsyncExpand<T> on Stream<T> {
81
81
var cancels = [for (var s in subscriptions) s.cancel ()]
82
82
// Handle opt-out nulls
83
83
..removeWhere ((Object ? f) => f == null );
84
- return Future .wait (cancels) .then ((_) => null );
84
+ return cancels .wait.then ((_) => null );
85
85
};
86
86
};
87
87
return controller.stream;
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ extension CombineLatest<T> on Stream<T> {
133
133
..removeWhere ((Object ? f) => f == null );
134
134
sourceSubscription = null ;
135
135
otherSubscription = null ;
136
- return Future .wait (cancels) .then ((_) => null );
136
+ return cancels .wait.then ((_) => null );
137
137
};
138
138
};
139
139
return controller.stream;
@@ -234,7 +234,7 @@ extension CombineLatest<T> on Stream<T> {
234
234
// Handle opt-out nulls
235
235
..removeWhere ((Object ? f) => f == null );
236
236
if (cancels.isEmpty) return null ;
237
- return Future .wait (cancels) .then ((_) => null );
237
+ return cancels .wait.then ((_) => null );
238
238
};
239
239
};
240
240
return controller.stream;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ extension Merge<T> on Stream<T> {
94
94
// Handle opt-out nulls
95
95
..removeWhere ((Object ? f) => f == null );
96
96
if (cancels.isEmpty) return null ;
97
- return Future .wait (cancels) .then ((_) => null );
97
+ return cancels .wait.then ((_) => null );
98
98
};
99
99
};
100
100
return controller.stream;
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ extension SwitchLatest<T> on Stream<Stream<T>> {
128
128
// Handle opt-out nulls
129
129
..removeWhere ((Object ? f) => f == null );
130
130
if (cancels.isEmpty) return null ;
131
- return Future .wait (cancels) .then (_ignore);
131
+ return cancels .wait.then (_ignore);
132
132
};
133
133
};
134
134
return controller.stream;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ void main() {
59
59
const TypeMatcher <Future <void >>(),
60
60
const TypeMatcher <Future <void >>()
61
61
]);
62
- expect (await Future .wait (result) , [1 , 3 ]);
62
+ expect (await result .wait, [1 , 3 ]);
63
63
});
64
64
65
65
test ('does not call for subsequent values while waiting' , () async {
You can’t perform that action at this time.
0 commit comments