| OLD | NEW |
| 1 // Copyright (c) 2011, 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 /** |
| 6 * [Process] objects are used to start new processes and interact with |
| 7 * them. |
| 8 */ |
| 5 interface Process default _Process { | 9 interface Process default _Process { |
| 6 /** | 10 /** |
| 7 * Creates a new process object and starts a process running the | 11 * Creates a new process object and starts a process running the |
| 8 * [executable] with the specified [arguments]. When the process has been | 12 * [executable] with the specified [arguments]. When the process has been |
| 9 * successfully started the [startHandler] is called. If the process fails | 13 * successfully started the [startHandler] is called. If the process fails |
| 10 * to start the [errorHandler] is called. | 14 * to start the [errorHandler] is called. |
| 11 * | 15 * |
| 12 * An optional [workingDirectory] can be passed to specify where the process | 16 * An optional [workingDirectory] can be passed to specify where the process |
| 13 * is run from. Note that the change of directory occurs before executing | 17 * is run from. Note that the change of directory occurs before executing |
| 14 * the process on some platforms, which may have impact when using relative | 18 * the process on some platforms, which may have impact when using relative |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 /** | 82 /** |
| 79 * Contains the system message for the process exception if any. | 83 * Contains the system message for the process exception if any. |
| 80 */ | 84 */ |
| 81 final String message; | 85 final String message; |
| 82 | 86 |
| 83 /** | 87 /** |
| 84 * Contains the OS error code for the process exception if any. | 88 * Contains the OS error code for the process exception if any. |
| 85 */ | 89 */ |
| 86 final int errorCode; | 90 final int errorCode; |
| 87 } | 91 } |
| OLD | NEW |