| Index: runtime/lib/isolate.dart
|
| diff --git a/runtime/lib/isolate.dart b/runtime/lib/isolate.dart
|
| index 2615a44ca63191b9c0ff7a62cde7c36ce42e4537..9a7aa99df65b65107e97a1ca092bd51cb785ec80 100644
|
| --- a/runtime/lib/isolate.dart
|
| +++ b/runtime/lib/isolate.dart
|
| @@ -135,11 +135,11 @@ class SendPortImpl implements SendPort {
|
|
|
|
|
| class IsolateNatives {
|
| - static Promise<SendPort> spawn(Isolate isolate, bool isLight) {
|
| - Promise<SendPort> result = new Promise<SendPort>();
|
| + static Future<SendPort> spawn(Isolate isolate, bool isLight) {
|
| + Completer<SendPort> completer = new Completer<SendPort>();
|
| SendPort port = _start(isolate, isLight);
|
| - result.complete(port);
|
| - return result;
|
| + completer.complete(port);
|
| + return completer.future;
|
| }
|
|
|
| // Starts a new isolate calling the run method on a new instance of the
|
|
|