Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: tests/isolate/src/Mixed2Test.dart

Issue 8457005: convert isolates to use Future (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated co19 Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/isolate/src/MintMakerTest.dart ('k') | tests/isolate/src/TestFramework.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/Mixed2Test.dart
diff --git a/tests/isolate/src/Mixed2Test.dart b/tests/isolate/src/Mixed2Test.dart
index de091421013c8fe8c11dcaf0dbec20b3d946cf3e..ae3e20d0305a3a5367f7a9cda1ea494b119778a8 100644
--- a/tests/isolate/src/Mixed2Test.dart
+++ b/tests/isolate/src/Mixed2Test.dart
@@ -33,9 +33,9 @@ class HeavyIsolate1 extends Isolate {
HeavyIsolate1() : super.heavy();
void main() {
- Promise<SendPort> light1 = new LightRedirect().spawn();
- Promise<SendPort> light2 = new LightRedirect().spawn();
- Promise<SendPort> light3 = new LightRedirect().spawn();
+ Future<SendPort> light1 = new LightRedirect().spawn();
+ Future<SendPort> light2 = new LightRedirect().spawn();
+ Future<SendPort> light3 = new LightRedirect().spawn();
this.port.receive((SendPort heavy2Light1Port, ignored) {
light3.then((SendPort light3Port) {
@@ -61,9 +61,9 @@ class HeavyIsolate2 extends Isolate {
HeavyIsolate2() : super.heavy();
void main() {
- Promise<SendPort> light1 = new LightRedirect().spawn();
- Promise<SendPort> light2 = new LightRedirect().spawn();
- Promise<SendPort> light3 = new LightRedirect().spawn();
+ Future<SendPort> light1 = new LightRedirect().spawn();
+ Future<SendPort> light2 = new LightRedirect().spawn();
+ Future<SendPort> light3 = new LightRedirect().spawn();
this.port.receive((heavy3Port, replyWithLight1Port) {
light3.then((SendPort light3Port) {
@@ -96,7 +96,7 @@ class HeavyIsolate3 extends Isolate {
HeavyIsolate3() : super.heavy();
void main() {
- Promise<SendPort> pong = new LightPong().spawn();
+ Future<SendPort> pong = new LightPong().spawn();
this.port.receive((msg, replyTo) {
pong.then((SendPort pongPort) {
pongPort.send(msg + 30, replyTo);
« no previous file with comments | « tests/isolate/src/MintMakerTest.dart ('k') | tests/isolate/src/TestFramework.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698