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

Side by Side Diff: lib/compiler/implementation/lib/io.dart

Issue 11091070: Change Process.start to return a future that completes with a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Restructure to get rid of _onStart and _onError Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/process.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This is a copy of the VM's dart:io library. This API is not usable 5 // This is a copy of the VM's dart:io library. This API is not usable
6 // when running inside a web browser. Nevertheless, Leg provides a 6 // when running inside a web browser. Nevertheless, Leg provides a
7 // mock version of the dart:io library so that it can statically 7 // mock version of the dart:io library so that it can statically
8 // analyze programs that use dart:io. 8 // analyze programs that use dart:io.
9 9
10 // TODO(ahe): Separate API from implementation details. 10 // TODO(ahe): Separate API from implementation details.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 class _DirectoryLister { 149 class _DirectoryLister {
150 } 150 }
151 151
152 void _exit(int exitCode) { 152 void _exit(int exitCode) {
153 throw new UnsupportedOperationException("exit($exitCode)"); 153 throw new UnsupportedOperationException("exit($exitCode)");
154 } 154 }
155 155
156 class _Process { 156 class _Process {
157 static Process start(String executable, 157 static Future<Process> start(String executable,
158 List<String> arguments, 158 List<String> arguments,
159 [ProcessOptions options]) { 159 [ProcessOptions options]) {
160 var msg = 'Process.start($executable, $arguments, $options)'; 160 var msg = 'Process.start($executable, $arguments, $options)';
161 throw new UnsupportedOperationException(msg); 161 throw new UnsupportedOperationException(msg);
162 } 162 }
163 163
164 static Future<ProcessResult> run(String executable, 164 static Future<ProcessResult> run(String executable,
165 List<String> arguments, 165 List<String> arguments,
166 [ProcessOptions options]) { 166 [ProcessOptions options]) {
167 var msg = 'Process.run($executable, $arguments, $options)'; 167 var msg = 'Process.run($executable, $arguments, $options)';
168 throw new UnsupportedOperationException(msg); 168 throw new UnsupportedOperationException(msg);
169 } 169 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 static void set _eventHandler(_EventHandler e) { 203 static void set _eventHandler(_EventHandler e) {
204 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); 204 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e');
205 } 205 }
206 } 206 }
207 207
208 const InputStream stdin = null; 208 const InputStream stdin = null;
209 209
210 const OutputStream stdout = null; 210 const OutputStream stdout = null;
211 211
212 const OutputStream stderr = null; 212 const OutputStream stderr = null;
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698