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 import "dart:collection" show HashMap; |
| 6 |
5 patch class ReceivePort { | 7 patch class ReceivePort { |
6 /* patch */ factory ReceivePort() = _ReceivePortImpl; | 8 /* patch */ factory ReceivePort() = _ReceivePortImpl; |
7 | 9 |
8 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = | 10 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = |
9 _ReceivePortImpl.fromRawReceivePort; | 11 _ReceivePortImpl.fromRawReceivePort; |
10 } | 12 } |
11 | 13 |
12 patch class RawReceivePort { | 14 patch class RawReceivePort { |
13 /** | 15 /** |
14 * Opens a long-lived port for receiving messages. | 16 * Opens a long-lived port for receiving messages. |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 } | 243 } |
242 | 244 |
243 static final RawReceivePort _self = _mainPort; | 245 static final RawReceivePort _self = _mainPort; |
244 static RawReceivePort get _mainPort native "Isolate_mainPort"; | 246 static RawReceivePort get _mainPort native "Isolate_mainPort"; |
245 | 247 |
246 static SendPort _spawnFunction(Function topLevelFunction) | 248 static SendPort _spawnFunction(Function topLevelFunction) |
247 native "Isolate_spawnFunction"; | 249 native "Isolate_spawnFunction"; |
248 | 250 |
249 static SendPort _spawnUri(String uri) native "Isolate_spawnUri"; | 251 static SendPort _spawnUri(String uri) native "Isolate_spawnUri"; |
250 } | 252 } |
OLD | NEW |