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

Unified Diff: lib/compiler/implementation/lib/io.dart

Issue 10392023: Change dart:io to use Future for one-shot operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding stable test binaries Created 8 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 | « no previous file | lib/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/io.dart
diff --git a/lib/compiler/implementation/lib/io.dart b/lib/compiler/implementation/lib/io.dart
index 040925dfa298101ae82c33d38cb8a68cbdc5e618..523306255c394069275324f4b8ad4bba28f3207f 100644
--- a/lib/compiler/implementation/lib/io.dart
+++ b/lib/compiler/implementation/lib/io.dart
@@ -92,19 +92,21 @@ class _Directory {
}
}
+class _DirectoryLister {
+}
+
class _Process {
- factory Process.start(String executable,
- List<String> arguments,
- [ProcessOptions options]) {
- var msg = 'new Process.start($executable, $arguments, $options)';
+ static Process start(String executable,
+ List<String> arguments,
+ [ProcessOptions options]) {
+ var msg = 'Process.start($executable, $arguments, $options)';
throw new UnsupportedOperationException(msg);
}
- factory Process.run(String executable,
- List<String> arguments,
- ProcessOptions options,
- void callback(int exit, String out, String err)) {
- var msg = 'new Process.run($executable, $arguments, $options, $callback)';
+ static Future<ProcessResult> run(String executable,
+ List<String> arguments,
+ [ProcessOptions options]) {
+ var msg = 'Process.run($executable, $arguments, $options)';
throw new UnsupportedOperationException(msg);
}
}
« no previous file with comments | « no previous file | lib/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698