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

Unified Diff: sdk/lib/isolate/isolate.dart

Issue 1320423004: Document the fact that SendPort.send() dispatches messages immediately. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/isolate/isolate.dart
diff --git a/sdk/lib/isolate/isolate.dart b/sdk/lib/isolate/isolate.dart
index 8c2b86e18b024b381f38da6f75348dddbf804484..4d0b13a8d8977ccaf9eccca4b5d1021c60ac0037 100644
--- a/sdk/lib/isolate/isolate.dart
+++ b/sdk/lib/isolate/isolate.dart
@@ -485,6 +485,9 @@ abstract class SendPort implements Capability {
* is also possible to send object instances (which would be copied in the
* process). This is currently only supported by the dartvm. For now, the
* dart2js compiler only supports the restricted messages described above.
+ *
+ * The send is immediate--it is not necessary to yield control to the event
+ * loop, provided that the receiver is running in a parallel isolate.
Lasse Reichstein Nielsen 2015/08/31 19:45:20 I don't think we use the term "parallel isolate" a
Paul Berry 2015/08/31 19:48:53 Works for me. PTAL.
*/
void send(var message);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698