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

Unified Diff: samples/tests/samples/src/proxy/PromiseBasedTest.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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 | « samples/proxy/proxy.dart ('k') | tests/isolate/src/ConstructorTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/tests/samples/src/proxy/PromiseBasedTest.dart
diff --git a/samples/tests/samples/src/proxy/PromiseBasedTest.dart b/samples/tests/samples/src/proxy/PromiseBasedTest.dart
index 441a237b507b796585a5bc6cf706d9229be2c6c9..b9b17762537e8b4989a128090930771e91549f4b 100644
--- a/samples/tests/samples/src/proxy/PromiseBasedTest.dart
+++ b/samples/tests/samples/src/proxy/PromiseBasedTest.dart
@@ -59,8 +59,9 @@ void expandedTest(TestExpectation expect) {
proxy.send([42]); // Seed the isolate.
Promise<SendPort> sendCompleter = proxy.call([87]);
Promise<int> result = new Promise<int>();
- ReceivePort receivePort = new ReceivePort.singleShot();
+ ReceivePort receivePort = new ReceivePort();
receivePort.receive((var msg, SendPort _) {
+ receivePort.close();
//print("test completer");
result.complete(msg[0]);
});
« no previous file with comments | « samples/proxy/proxy.dart ('k') | tests/isolate/src/ConstructorTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698