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

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

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: sdk/lib/io/mime_multipart_parser.dart
diff --git a/sdk/lib/io/mime_multipart_parser.dart b/sdk/lib/io/mime_multipart_parser.dart
index dc3f2069e8fb4377d685772cf0229ff1ae844973..0b22994bbacffeeea3117d40b6018009799b5947 100644
--- a/sdk/lib/io/mime_multipart_parser.dart
+++ b/sdk/lib/io/mime_multipart_parser.dart
@@ -100,7 +100,7 @@ class MimeMultipartTransformer
}
Stream<MimeMultipart> bind(Stream<List<int>> stream) {
- _controller = new StreamController(
+ _controller = new StreamController(sync: true,
floitsch 2013/05/30 12:13:48 next line
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
onPause: _pauseStream,
onResume:_resumeStream,
onCancel: () {
@@ -292,7 +292,7 @@ class MimeMultipartTransformer
case _HEADER_ENDING:
_expect(byte, _CharCode.LF);
- _multipartController = new StreamController(
+ _multipartController = new StreamController(sync: true,
floitsch 2013/05/30 12:13:48 ditto.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
onPause: () {
_pauseStream();
},

Powered by Google App Engine
This is Rietveld 408576698