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

Unified Diff: samples/total/server/TotalRunner.dart

Issue 9500002: Rename blahHandler to onBlah throughout dart:io. (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 | « samples/total/server/DartCompiler.dart ('k') | tests/standalone/src/ChunkedStreamTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/total/server/TotalRunner.dart
diff --git a/samples/total/server/TotalRunner.dart b/samples/total/server/TotalRunner.dart
index 411b815981904a2d95194cfb92f7dcc2447798f4..20f668d34d7b1609f63bea0cb637a3c78ceb405f 100755
--- a/samples/total/server/TotalRunner.dart
+++ b/samples/total/server/TotalRunner.dart
@@ -56,13 +56,13 @@ class ServerRunner {
}
Process dart = new Process.start(foundExec, [_serverMain]);
- dart.exitHandler = (int status) {
+ dart.onExit = (int status) {
dart.close();
exitCallback(status, this);
};
- dart.stdout.dataHandler = () => readMore(dart.stdout, new StringBuffer());
- dart.stderr.dataHandler = () => readMore(dart.stderr, new StringBuffer());
+ dart.stdout.onData = () => readMore(dart.stdout, new StringBuffer());
+ dart.stderr.onData = () => readMore(dart.stderr, new StringBuffer());
}
void readMore(InputStream i, StringBuffer readSoFar) {
« no previous file with comments | « samples/total/server/DartCompiler.dart ('k') | tests/standalone/src/ChunkedStreamTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698