File tree 4 files changed +13
-5
lines changed 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.6.1
2
+
3
+ * Fix the type of ` StreamChannel.transform() ` . This previously inverted the
4
+ generic parameters, so it only really worked with transformers where both
5
+ generic types were identical.
6
+
1
7
## 1.6.0
2
8
3
9
* ` Disconnector.disconnect() ` now returns a future that completes when all the
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ abstract class StreamChannel<T> {
108
108
/// Transforms [this] using [transformer] .
109
109
///
110
110
/// This is identical to calling `transformer.bind(channel)` .
111
- StreamChannel transform (StreamChannelTransformer <T , dynamic > transformer);
111
+ StreamChannel /*<S>*/ transform/*<S>*/ (
112
+ StreamChannelTransformer <dynamic /*=S*/ , T > transformer);
112
113
113
114
/// Transforms only the [stream] component of [this] using [transformer] .
114
115
StreamChannel <T > transformStream (StreamTransformer <T , T > transformer);
@@ -152,7 +153,8 @@ abstract class StreamChannelMixin<T> implements StreamChannel<T> {
152
153
other.stream.pipe (sink);
153
154
}
154
155
155
- StreamChannel transform (StreamChannelTransformer <T , dynamic > transformer) =>
156
+ StreamChannel /*<S>*/ transform/*<S>*/ (
157
+ StreamChannelTransformer <dynamic /*=S*/ , T > transformer) =>
156
158
transformer.bind (this );
157
159
158
160
StreamChannel <T > transformStream (StreamTransformer <T , T > transformer) =>
Original file line number Diff line number Diff line change 1
1
name : stream_channel
2
- version : 1.6.0
2
+ version : 1.6.1
3
3
description : An abstraction for two-way communication channels.
4
4
author :
Dart Team <[email protected] >
5
5
homepage : https://github.com/dart-lang/stream_channel
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import 'package:test/test.dart';
11
11
void main () {
12
12
var streamController;
13
13
var sinkController;
14
- var channel;
14
+ StreamChannel < String > channel;
15
15
setUp (() {
16
16
streamController = new StreamController ();
17
17
sinkController = new StreamController ();
18
- channel = new StreamChannel (
18
+ channel = new StreamChannel < String > (
19
19
streamController.stream, sinkController.sink);
20
20
});
21
21
You can’t perform that action at this time.
0 commit comments