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; | 5 import "dart:collection" show HashMap; |
6 | 6 |
7 patch class ReceivePort { | 7 patch class ReceivePort { |
8 /* patch */ factory ReceivePort() = _ReceivePortImpl; | 8 /* patch */ factory ReceivePort() = _ReceivePortImpl; |
9 | 9 |
10 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = | 10 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 return completer.future; | 267 return completer.future; |
268 } | 268 } |
269 | 269 |
270 static final RawReceivePort _self = _mainPort; | 270 static final RawReceivePort _self = _mainPort; |
271 static RawReceivePort get _mainPort native "Isolate_mainPort"; | 271 static RawReceivePort get _mainPort native "Isolate_mainPort"; |
272 | 272 |
273 static SendPort _spawnFunction(Function topLevelFunction) | 273 static SendPort _spawnFunction(Function topLevelFunction) |
274 native "Isolate_spawnFunction"; | 274 native "Isolate_spawnFunction"; |
275 | 275 |
276 static SendPort _spawnUri(String uri) native "Isolate_spawnUri"; | 276 static SendPort _spawnUri(String uri) native "Isolate_spawnUri"; |
| 277 |
| 278 /* patch */ void _pause(Capability resumeCapability) { |
| 279 throw new UnsupportedError("pause"); |
| 280 } |
| 281 |
| 282 /* patch */ void resume(Capability resumeCapability) { |
| 283 throw new UnsupportedError("resume"); |
| 284 } |
| 285 |
| 286 /* patch */ void addOnExitListener(SendPort responsePort) { |
| 287 throw new UnsupportedError("addOnExitListener"); |
| 288 } |
| 289 |
| 290 /* patch */ void removeOnExitListener(SendPort responsePort) { |
| 291 throw new UnsupportedError("removeOnExitListener"); |
| 292 } |
| 293 |
| 294 /* patch */ void setErrorsFatal(bool errorsAreFatal) { |
| 295 throw new UnsupportedError("setErrorsFatal"); |
| 296 } |
| 297 |
| 298 /* patch */ void kill([int priority = BEFORE_NEXT_EVENT]) { |
| 299 throw new UnsupportedError("kill"); |
| 300 } |
| 301 |
| 302 /* patch */ void ping(SendPort responsePort, [int pingType = IMMEDIATE]) { |
| 303 throw new UnsupportedError("ping"); |
| 304 } |
| 305 |
| 306 /* patch */ void addErrorListener(SendPort port) { |
| 307 throw new UnsupportedError("addErrorListener"); |
| 308 } |
| 309 |
| 310 /* patch */ void removeErrorListener(SendPort port) { |
| 311 throw new UnsupportedError("removeErrorListener"); |
| 312 } |
277 } | 313 } |
OLD | NEW |