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 part of dart_isolate; | |
6 | |
7 class IsolateSpawnException implements Exception { | 5 class IsolateSpawnException implements Exception { |
8 const IsolateSpawnException(String this._s); | 6 const IsolateSpawnException(String this._s); |
9 String toString() => "IsolateSpawnException: '$_s'"; | 7 String toString() => "IsolateSpawnException: '$_s'"; |
10 final String _s; | 8 final String _s; |
11 } | 9 } |
12 | 10 |
13 /** | 11 /** |
14 * The initial [ReceivePort] available by default for this isolate. This | 12 * The initial [ReceivePort] available by default for this isolate. This |
15 * [ReceivePort] is created automatically and it is commonly used to establish | 13 * [ReceivePort] is created automatically and it is commonly used to establish |
16 * the first communication between isolates (see [spawnFunction] and | 14 * the first communication between isolates (see [spawnFunction] and |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 SendPort toSendPort(); | 135 SendPort toSendPort(); |
138 | 136 |
139 } | 137 } |
140 | 138 |
141 // TODO(kasperl): Document this. | 139 // TODO(kasperl): Document this. |
142 abstract class SendPortSync { | 140 abstract class SendPortSync { |
143 | 141 |
144 callSync(var message); | 142 callSync(var message); |
145 | 143 |
146 } | 144 } |
OLD | NEW |