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

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: Address review comments 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
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1e3c5487c30c614490b5c684e1a4635df2cee610 100644
--- a/sdk/lib/io/mime_multipart_parser.dart
+++ b/sdk/lib/io/mime_multipart_parser.dart
@@ -101,6 +101,7 @@ class MimeMultipartTransformer
Stream<MimeMultipart> bind(Stream<List<int>> stream) {
_controller = new StreamController(
+ sync: true,
onPause: _pauseStream,
onResume:_resumeStream,
onCancel: () {
@@ -293,6 +294,7 @@ class MimeMultipartTransformer
case _HEADER_ENDING:
_expect(byte, _CharCode.LF);
_multipartController = new StreamController(
+ sync: true,
onPause: () {
_pauseStream();
},
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698