| OLD | NEW |
| 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 /** | 5 /** |
| 6 * Concurrent programming using _isolates_: | 6 * Concurrent programming using _isolates_: |
| 7 * independent workers that are similar to threads | 7 * independent workers that are similar to threads |
| 8 * but don't share memory, | 8 * but don't share memory, |
| 9 * communicating only via messages. | 9 * communicating only via messages. |
| 10 */ | 10 */ |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 * the isolate will act as if, respectively, [setErrorsFatal], | 192 * the isolate will act as if, respectively, [setErrorsFatal], |
| 193 * [addOnExitListener] and [addErrorListener] were called with the | 193 * [addOnExitListener] and [addErrorListener] were called with the |
| 194 * corresponding parameter and was processed before the isolate starts | 194 * corresponding parameter and was processed before the isolate starts |
| 195 * running. | 195 * running. |
| 196 * | 196 * |
| 197 * You can also call the [setErrorsFatal], [addOnExitListener] and | 197 * You can also call the [setErrorsFatal], [addOnExitListener] and |
| 198 * [addErrorListener] methods on the returned isolate, but unless the | 198 * [addErrorListener] methods on the returned isolate, but unless the |
| 199 * isolate was started as [paused], it may already have terminated | 199 * isolate was started as [paused], it may already have terminated |
| 200 * before those methods can complete. | 200 * before those methods can complete. |
| 201 * | 201 * |
| 202 * WARNING: The [errorsAreFatal], [onExit] and [onError] parameters are not | |
| 203 * implemented yet. | |
| 204 * | |
| 205 * If the [checked] parameter is set to `true` or `false`, | 202 * If the [checked] parameter is set to `true` or `false`, |
| 206 * the new isolate will run code in checked mode, | 203 * the new isolate will run code in checked mode, |
| 207 * respectively in production mode, if possible. | 204 * respectively in production mode, if possible. |
| 208 * If the parameter is omitted, the new isolate will inherit the | 205 * If the parameter is omitted, the new isolate will inherit the |
| 209 * value from the current isolate. | 206 * value from the current isolate. |
| 210 * | 207 * |
| 211 * It may not always be possible to honor the `checked` parameter. | 208 * It may not always be possible to honor the `checked` parameter. |
| 212 * If the isolate code was pre-compiled, it may not be possible to change | 209 * If the isolate code was pre-compiled, it may not be possible to change |
| 213 * the checked mode setting dynamically. | 210 * the checked mode setting dynamically. |
| 214 * In that case, the `checked` parameter is ignored. | 211 * In that case, the `checked` parameter is ignored. |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 * as the original error, but has no other features of the original error. | 632 * as the original error, but has no other features of the original error. |
| 636 */ | 633 */ |
| 637 class RemoteError implements Error { | 634 class RemoteError implements Error { |
| 638 final String _description; | 635 final String _description; |
| 639 final StackTrace stackTrace; | 636 final StackTrace stackTrace; |
| 640 RemoteError(String description, String stackDescription) | 637 RemoteError(String description, String stackDescription) |
| 641 : _description = description, | 638 : _description = description, |
| 642 stackTrace = new StackTrace.fromString(stackDescription); | 639 stackTrace = new StackTrace.fromString(stackDescription); |
| 643 String toString() => _description; | 640 String toString() => _description; |
| 644 } | 641 } |
| OLD | NEW |