Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index 2392b38862eae0cd9d156fa46cfafaa7ce7aa4fd..53a0f504a8872d2ca6ed7c65f6660979ea43676b 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -47,7 +47,7 @@ class _FileStream extends Stream<List<int>> { |
} |
void _setupController() { |
- _controller = new StreamController<List<int>>( |
+ _controller = new StreamController<List<int>>(sync: true, |
onListen: _start, |
onPause: () => _paused = true, |
onResume: _resume, |
@@ -488,7 +488,7 @@ class _File implements File { |
static List<String> _decodeLines(List<int> bytes, Encoding encoding) { |
if (bytes.length == 0) return []; |
var list = []; |
- var controller = new StreamController(); |
+ var controller = new StreamController(sync: true); |
controller.stream |
.transform(new StringDecoder(encoding)) |
.transform(new LineTransformer()) |