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

Unified Diff: runtime/bin/vmservice/running_isolate.dart

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 2 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 | « runtime/bin/socket_patch.dart ('k') | runtime/bin/vmservice/vmservice.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/running_isolate.dart
diff --git a/runtime/bin/vmservice/running_isolate.dart b/runtime/bin/vmservice/running_isolate.dart
index 2d4af13ae97c8b7cd1c16398af2ecf051447251a..13b358a1becc614515bd205c21179a4eb951fde3 100644
--- a/runtime/bin/vmservice/running_isolate.dart
+++ b/runtime/bin/vmservice/running_isolate.dart
@@ -12,16 +12,16 @@ class RunningIsolate implements ServiceRequestRouter {
Future sendMessage(List request) {
final completer = new Completer.sync();
- final receivePort = new ReceivePort();
+ final receivePort = new RawReceivePort();
sendServiceMessage(sendPort, receivePort, request);
- receivePort.receive((value, ignoreReplyTo) {
+ receivePort.handler = (value) {
receivePort.close();
if (value is Exception) {
completer.completeError(value);
} else {
completer.complete(value);
}
- });
+ };
return completer.future;
}
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/bin/vmservice/vmservice.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698