| 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 class IsolateSpawnException implements Exception { | 5 class IsolateSpawnException implements Exception { |
| 6 const IsolateSpawnException(String this._s); | 6 const IsolateSpawnException(String this._s); |
| 7 String toString() => "IsolateSpawnException: '$_s'"; | 7 String toString() => "IsolateSpawnException: '$_s'"; |
| 8 final String _s; | 8 final String _s; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 /** | 85 /** |
| 86 * Tests whether [other] is a [SendPort] pointing to the same | 86 * Tests whether [other] is a [SendPort] pointing to the same |
| 87 * [ReceivePort] as this one. | 87 * [ReceivePort] as this one. |
| 88 */ | 88 */ |
| 89 bool operator==(var other); | 89 bool operator==(var other); |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * Returns an immutable hash code for this send port that is | 92 * Returns an immutable hash code for this send port that is |
| 93 * consistent with the == operator. | 93 * consistent with the == operator. |
| 94 */ | 94 */ |
| 95 int hashCode(); | 95 int get hashCode; |
| 96 | 96 |
| 97 } | 97 } |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * [ReceivePort]s, together with [SendPort]s, are the only means of | 100 * [ReceivePort]s, together with [SendPort]s, are the only means of |
| 101 * communication between isolates. [ReceivePort]s have a [:toSendPort:] method | 101 * communication between isolates. [ReceivePort]s have a [:toSendPort:] method |
| 102 * which returns a [SendPort]. Any message that is sent through this [SendPort] | 102 * which returns a [SendPort]. Any message that is sent through this [SendPort] |
| 103 * is delivered to the [ReceivePort] it has been created from. There, they are | 103 * is delivered to the [ReceivePort] it has been created from. There, they are |
| 104 * dispatched to the callback that has been registered on the receive port. | 104 * dispatched to the callback that has been registered on the receive port. |
| 105 * | 105 * |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // TODO(kasperl): Document this. | 139 // TODO(kasperl): Document this. |
| 140 abstract class SendPortSync { | 140 abstract class SendPortSync { |
| 141 | 141 |
| 142 callSync(var message); | 142 callSync(var message); |
| 143 | 143 |
| 144 } | 144 } |
| 145 | 145 |
| 146 class _ReceivePortFactory { | 146 class _ReceivePortFactory { |
| 147 external factory ReceivePort(); | 147 external factory ReceivePort(); |
| 148 } | 148 } |
| OLD | NEW |