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

Unified Diff: lib/src/stream_sink_completer.dart

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Created 3 years, 11 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
Index: lib/src/stream_sink_completer.dart
diff --git a/lib/src/stream_sink_completer.dart b/lib/src/stream_sink_completer.dart
index 00a7086cf978cba631c2f46fdb3dfaabde98eaf7..4219126817583657297af3d2af2cbce681385c16 100644
--- a/lib/src/stream_sink_completer.dart
+++ b/lib/src/stream_sink_completer.dart
@@ -36,11 +36,9 @@ class StreamSinkCompleter<T> {
///
/// If the future completes with an error, the returned sink will instead
/// be closed. Its [Sink.done] future will contain the error.
- static StreamSink/*<T>*/ fromFuture/*<T>*/(
- Future<StreamSink/*<T>*/> sinkFuture) {
- var completer = new StreamSinkCompleter/*<T>*/();
- sinkFuture.then(completer.setDestinationSink,
- onError: completer.setError);
+ static StreamSink<T> fromFuture<T>(Future<StreamSink<T>> sinkFuture) {
+ var completer = new StreamSinkCompleter<T>();
+ sinkFuture.then(completer.setDestinationSink, onError: completer.setError);
return completer.sink;
}

Powered by Google App Engine
This is Rietveld 408576698