| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart isolate's API for the dartc compiler (only used for type checking in the | 6 // Dart isolate's API for the dartc compiler (only used for type checking in the |
| 7 // dart editor, but not for code generation). | 7 // dart editor, but not for code generation). |
| 8 #library("dart:isolate"); | 8 #library("dart:isolate"); |
| 9 | 9 |
| 10 #source("isolate_api.dart"); | 10 #source("isolate_api.dart"); |
| 11 | 11 |
| 12 class _IsolateFactory { | 12 SendPort _spawnFunction(void topLevelFunction()) { |
| 13 throw new NotImplementedException(); |
| 14 } |
| 13 | 15 |
| 14 factory Isolate2.fromCode(Function topLevelFunction) { | 16 SendPort _spawnUri(String uri) { |
| 15 throw new NotImplementedException(); | 17 throw new NotImplementedException(); |
| 16 } | |
| 17 | |
| 18 factory Isolate2.fromUri(String uri) { | |
| 19 throw new NotImplementedException(); | |
| 20 } | |
| 21 } | 18 } |
| 22 | 19 |
| 23 class _IsolateNatives { | 20 class _IsolateNatives { |
| 24 static Future<SendPort> spawn(Isolate isolate, bool isLight) { | 21 static Future<SendPort> spawn(Isolate isolate, bool isLight) { |
| 25 throw new NotImplementedException(); | 22 throw new NotImplementedException(); |
| 26 } | 23 } |
| 27 } | 24 } |
| 28 | 25 |
| 29 class _ReceivePortFactory { | 26 class _ReceivePortFactory { |
| 30 | 27 |
| 31 factory ReceivePort() { | 28 factory ReceivePort() { |
| 32 throw new NotImplementedException(); | 29 throw new NotImplementedException(); |
| 33 } | 30 } |
| 34 | 31 |
| 35 factory ReceivePort.singleShot() { | 32 factory ReceivePort.singleShot() { |
| 36 throw new NotImplementedException(); | 33 throw new NotImplementedException(); |
| 37 } | 34 } |
| 38 } | 35 } |
| OLD | NEW |