| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * Control port used to send control messages to the isolate. | 75 * Control port used to send control messages to the isolate. |
| 76 * | 76 * |
| 77 * The control port identifies the isolate. | 77 * The control port identifies the isolate. |
| 78 * | 78 * |
| 79 * An `Isolate` object allows sending control messages | 79 * An `Isolate` object allows sending control messages |
| 80 * through the control port. | 80 * through the control port. |
| 81 * | 81 * |
| 82 * Some control messages require a specific capability to be passed along | 82 * Some control messages require a specific capability to be passed along |
| 83 * with the message (see [pauseCapability] and [terminateCapaibility]), | 83 * with the message (see [pauseCapability] and [terminateCapability]), |
| 84 * otherwise the message is ignored by the isolate. | 84 * otherwise the message is ignored by the isolate. |
| 85 */ | 85 */ |
| 86 final SendPort controlPort; | 86 final SendPort controlPort; |
| 87 | 87 |
| 88 /** | 88 /** |
| 89 * Capability granting the ability to pause the isolate. | 89 * Capability granting the ability to pause the isolate. |
| 90 * | 90 * |
| 91 * This capability is required by [pause]. | 91 * This capability is required by [pause]. |
| 92 * If the capability is `null`, or if it is not the correct pause capability | 92 * If the capability is `null`, or if it is not the correct pause capability |
| 93 * of the isolate identified by [controlPort], | 93 * of the isolate identified by [controlPort], |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 * as the original error, but has no other features of the original error. | 708 * as the original error, but has no other features of the original error. |
| 709 */ | 709 */ |
| 710 class RemoteError implements Error { | 710 class RemoteError implements Error { |
| 711 final String _description; | 711 final String _description; |
| 712 final StackTrace stackTrace; | 712 final StackTrace stackTrace; |
| 713 RemoteError(String description, String stackDescription) | 713 RemoteError(String description, String stackDescription) |
| 714 : _description = description, | 714 : _description = description, |
| 715 stackTrace = new StackTrace.fromString(stackDescription); | 715 stackTrace = new StackTrace.fromString(stackDescription); |
| 716 String toString() => _description; | 716 String toString() => _description; |
| 717 } | 717 } |
| OLD | NEW |