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

Side by Side Diff: sdk/lib/io/process.dart

Issue 14028017: Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behav… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review comments. Created 7 years, 8 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 | « sdk/lib/io/io_sink.dart ('k') | sdk/lib/io/socket.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.io; 5 part of dart.io;
6 6
7 // TODO(ager): The only reason for this class is that we 7 // TODO(ager): The only reason for this class is that we
8 // cannot patch a top-level at this point. 8 // cannot patch a top-level at this point.
9 class _ProcessUtils { 9 class _ProcessUtils {
10 external static _exit(int status); 10 external static _exit(int status);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 * non-interactive. 108 * non-interactive.
109 */ 109 */
110 Stream<List<int>> get stderr; 110 Stream<List<int>> get stderr;
111 111
112 /** 112 /**
113 * Returns the standard input stream of the process as an [IOSink]. 113 * Returns the standard input stream of the process as an [IOSink].
114 * 114 *
115 * Throws an [UnsupportedError] if the process is 115 * Throws an [UnsupportedError] if the process is
116 * non-interactive. 116 * non-interactive.
117 */ 117 */
118 IOSink<Process> get stdin; 118 IOSink get stdin;
119 119
120 /** 120 /**
121 * Returns a [:Future:] which completes with the exit code of the process 121 * Returns a [:Future:] which completes with the exit code of the process
122 * when the process completes. 122 * when the process completes.
123 * 123 *
124 * Throws an [UnsupportedError] if the process is 124 * Throws an [UnsupportedError] if the process is
125 * non-interactive. 125 * non-interactive.
126 */ 126 */
127 Future<int> exitCode; 127 Future<int> exitCode;
128 128
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 /** 274 /**
275 * Contains the system message for the process exception if any. 275 * Contains the system message for the process exception if any.
276 */ 276 */
277 final String message; 277 final String message;
278 278
279 /** 279 /**
280 * Contains the OS error code for the process exception if any. 280 * Contains the OS error code for the process exception if any.
281 */ 281 */
282 final int errorCode; 282 final int errorCode;
283 } 283 }
OLDNEW
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | sdk/lib/io/socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698