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

Unified Diff: corelib/src/implementation/promise_implementation.dart

Issue 9358010: isolates in frog: playing with API improvements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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 | « no previous file | corelib/src/isolate.dart » ('j') | frog/lib/corelib.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/promise_implementation.dart
diff --git a/corelib/src/implementation/promise_implementation.dart b/corelib/src/implementation/promise_implementation.dart
index bf2400f2e2b16824a14226f65cdf155569ff409f..290531995f9b12cacddc8541f0166005f6de6d07 100644
--- a/corelib/src/implementation/promise_implementation.dart
+++ b/corelib/src/implementation/promise_implementation.dart
@@ -307,8 +307,8 @@ class ProxyBase extends PromiseImpl<bool> {
void send(List message) {
_marshal(message, (List marshalled) {
- SendPortImpl port = _promise.value;
- port._sendNow(marshalled, null);
+ SendPort port = _promise.value;
+ port.send(marshalled, null);
});
}
@@ -319,8 +319,8 @@ class ProxyBase extends PromiseImpl<bool> {
final result = new Promise();
// The promise queue implementation guarantees that promise is
// resolved at this point.
- SendPortImpl outgoing = _promise.value;
- ReceivePort incoming = outgoing._callNow(marshalled);
+ SendPort outgoing = _promise.value;
+ ReceivePort incoming = outgoing.call(marshalled);
incoming.receive((List receiveMessage, replyTo) {
result.complete(receiveMessage[0]);
});
« no previous file with comments | « no previous file | corelib/src/isolate.dart » ('j') | frog/lib/corelib.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698