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

Unified Diff: sdk/lib/io/process.dart

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 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 | « sdk/lib/io/list_stream_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/process.dart
diff --git a/sdk/lib/io/process.dart b/sdk/lib/io/process.dart
index e146c611151099a20cb682e5cf4c72d31602283b..deb3c83f41bbeddbbf1932eaf821adc1954418b0 100644
--- a/sdk/lib/io/process.dart
+++ b/sdk/lib/io/process.dart
@@ -84,7 +84,7 @@ abstract class Process {
* Throws an [UnsupportedError] if the process is
* non-interactive.
*/
- InputStream get stdout;
+ Stream<List<int>> get stdout;
/**
* Returns an input stream of the process stderr.
@@ -92,7 +92,7 @@ abstract class Process {
* Throws an [UnsupportedError] if the process is
* non-interactive.
*/
- InputStream get stderr;
+ Stream<List<int>> get stderr;
/**
* Returns an output stream to the process stdin.
@@ -100,7 +100,7 @@ abstract class Process {
* Throws an [UnsupportedError] if the process is
* non-interactive.
*/
- OutputStream get stdin;
+ IOSink<Process> get stdin;
/**
* Sets an exit handler which gets invoked when the process
@@ -109,7 +109,7 @@ abstract class Process {
* Throws an [UnsupportedError] if the process is
* non-interactive.
*/
- void set onExit(void callback(int exitCode));
+ Future<int> exitCode;
/**
* On Windows, [kill] kills the process, ignoring the [signal]
« no previous file with comments | « sdk/lib/io/list_stream_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698