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

Unified Diff: lib/src/stream_sink_completer.dart

Issue 1841223002: Fix most strong mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Code review changes Created 4 years, 9 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/handler_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 b53a8d2305f032a96c8f7322aa9c97c10811a059..00a7086cf978cba631c2f46fdb3dfaabde98eaf7 100644
--- a/lib/src/stream_sink_completer.dart
+++ b/lib/src/stream_sink_completer.dart
@@ -36,8 +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 fromFuture(Future<StreamSink> sinkFuture) {
- var completer = new StreamSinkCompleter();
+ 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/handler_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698