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

Unified Diff: lib/src/stream_sink_completer.dart

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Update version. Created 3 years, 10 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 | « lib/src/stream_queue.dart ('k') | lib/src/stream_sink_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f8056c784fd73256bbe6d10c1b16cbb46296b721 100644
--- a/lib/src/stream_sink_completer.dart
+++ b/lib/src/stream_sink_completer.dart
@@ -36,9 +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>*/();
+ static StreamSink<T> fromFuture<T>(
+ Future<StreamSink<T>> sinkFuture) {
+ var completer = new StreamSinkCompleter<T>();
sinkFuture.then(completer.setDestinationSink,
onError: completer.setError);
return completer.sink;
« no previous file with comments | « lib/src/stream_queue.dart ('k') | lib/src/stream_sink_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698