Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: sdk/lib/io/io_sink.dart

Issue 14172013: Remove second generic argument of StreamConsumer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/http_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_sink.dart
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart
index 794095e68d56132899f2b13816857e86a9b77cbc..4f5c0d559d4d45930ef7cd86d6b8d3a10f45b22e 100644
--- a/sdk/lib/io/io_sink.dart
+++ b/sdk/lib/io/io_sink.dart
@@ -5,7 +5,7 @@
part of dart.io;
/**
- * Helper class to wrap a [StreamConsumer<List<int>, T>] and provide
+ * Helper class to wrap a [StreamConsumer<List<int>>] and provide
* utility functions for writing to the StreamConsumer directly. The
* [IOSink] buffers the input given by [write], [writeAll], [writeln],
* [writeCharCode] and [add] and will delay a [consume] or
@@ -16,8 +16,8 @@ part of dart.io;
* [StateError].
*/
abstract class IOSink<T>
- implements StreamConsumer<List<int>, T>, StringSink, EventSink<List<int>> {
- factory IOSink(StreamConsumer<List<int>, T> target,
+ implements StreamConsumer<List<int>>, StringSink, EventSink<List<int>> {
+ factory IOSink(StreamConsumer<List<int>> target,
{Encoding encoding: Encoding.UTF_8})
=> new _IOSinkImpl(target, encoding);
@@ -70,7 +70,7 @@ abstract class IOSink<T>
class _IOSinkImpl<T> implements IOSink<T> {
- final StreamConsumer<List<int>, T> _target;
+ final StreamConsumer<List<int>> _target;
Completer _writeStreamCompleter;
StreamController<List<int>> _controllerInstance;
@@ -79,7 +79,7 @@ class _IOSinkImpl<T> implements IOSink<T> {
bool _paused = true;
bool _encodingMutable = true;
- _IOSinkImpl(StreamConsumer<List<int>, T> this._target, this._encoding);
+ _IOSinkImpl(StreamConsumer<List<int>> this._target, this._encoding);
Encoding _encoding;
« no previous file with comments | « sdk/lib/io/http_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698