Chromium Code Reviews| Index: corelib/src/isolate.dart |
| diff --git a/corelib/src/isolate.dart b/corelib/src/isolate.dart |
| index 54ec293eadffd2ab76c71314452c43814c25a34f..480e10c4ca73528a2ca7c80a473285e75bf114fd 100644 |
| --- a/corelib/src/isolate.dart |
| +++ b/corelib/src/isolate.dart |
| @@ -137,14 +137,14 @@ class Isolate { |
| * During the initialization of the new isolate a [ReceivePort] is created |
| * inside the new isolate and stored in [port]. A corresponding |
| * [SendPort] is sent to the isolate that invoked [spawn]. Since spawning an |
| - * isolate is an asynchronous operation this method returns a [Promise] of |
| + * isolate is an asynchronous operation this method returns a [Future] of |
| * this [SendPort]. |
| * |
| * A common pattern to instantiate new isolates is to enqueue the instructions |
| - * in [Promise.then]. |
| + * in [Future.then]. |
| * [:myIsolate.spawn().then((SendPort port) { port.send('hi there'); });:] |
| */ |
| - Promise<SendPort> spawn() { |
| + Future<SendPort> spawn() { |
|
Siggi Cherem (dart-lang)
2011/11/04 16:57:33
I'm surprised that so little changes had to be mad
|
| return IsolateNatives.spawn(this, _isLight); |
| } |