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

Unified Diff: runtime/bin/string_stream.dart

Issue 9474004: Make FileInputStream and FileOutputStream actually asynchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 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 | « runtime/bin/stream_util.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/string_stream.dart
diff --git a/runtime/bin/string_stream.dart b/runtime/bin/string_stream.dart
index 4352634817040268cb2f48d4b6cae1a316fd4ec9..608efe3d6d8cbb8a699ad697ae0430a919661897 100644
--- a/runtime/bin/string_stream.dart
+++ b/runtime/bin/string_stream.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -360,7 +360,9 @@ class _StringInputStream implements StringInputStream {
if (_clientDataHandler != null &&
!_decoder.isEmpty() &&
_scheduledDataCallback == null) {
- if (_scheduledLineCallback != null) _scheduledLineCallback.cancel();
+ if (_scheduledLineCallback != null) {
+ _scheduledLineCallback.cancel();
+ }
_scheduledDataCallback = new Timer(issueDataCallback, 0);
}
@@ -368,7 +370,9 @@ class _StringInputStream implements StringInputStream {
if (_clientLineHandler != null &&
(_decoder.lineBreaks > 0 || (!_decoder.isEmpty() && _inputClosed)) &&
_scheduledLineCallback == null) {
- if (_scheduledDataCallback != null) _scheduledDataCallback.cancel();
+ if (_scheduledDataCallback != null) {
+ _scheduledDataCallback.cancel();
+ }
_scheduledLineCallback = new Timer(issueLineCallback, 0);
}
« no previous file with comments | « runtime/bin/stream_util.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698