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

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: Revised wording 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..d239ef2b322e65c3d1d412371a1063308785f8c8 100644
--- a/sdk/lib/isolate/isolate.dart
+++ b/sdk/lib/isolate/isolate.dart
@@ -485,6 +485,10 @@ 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 happens immediately and doesn't block. The corresponding receive
+ * port can receive the message as soon as its isolate's event loop is ready
+ * to deliver it, independently of what the sending isolate is doing.
*/
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