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

Unified Diff: pkg/http/lib/src/utils.dart

Issue 12374033: Remove the wrapStream workaround for issue 8310. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « pkg/http/lib/src/byte_stream.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/utils.dart
diff --git a/pkg/http/lib/src/utils.dart b/pkg/http/lib/src/utils.dart
index caef51fbed363e1d62f5064d68cc4a93f1d4af0e..65c47997b1e6991c5cf460fe4ae8659432901262 100644
--- a/pkg/http/lib/src/utils.dart
+++ b/pkg/http/lib/src/utils.dart
@@ -250,16 +250,3 @@ Future forEachFuture(Iterable input, Future fn(element)) {
}
return nextElement(null);
}
-
-// TODO(nweiz): remove this when issue 8310 is fixed.
-/// Returns a [Stream] identical to [stream], but piped through a new
-/// [StreamController]. This exists to work around issue 8310.
-Stream wrapStream(Stream stream) {
- var controller = stream.isBroadcast
- ? new StreamController.broadcast()
- : new StreamController();
- stream.listen(controller.add,
- onError: (e) => controller.signalError(e),
- onDone: controller.close);
- return controller.stream;
-}
« no previous file with comments | « pkg/http/lib/src/byte_stream.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698