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

Unified Diff: corelib/src/isolate.dart

Issue 8505008: Edit documentation for ReceivePort and Isolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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: corelib/src/isolate.dart
diff --git a/corelib/src/isolate.dart b/corelib/src/isolate.dart
index 480e10c4ca73528a2ca7c80a473285e75bf114fd..71950756419e38375e0f7689884efe84aa4b9e8c 100644
--- a/corelib/src/isolate.dart
+++ b/corelib/src/isolate.dart
@@ -78,16 +78,16 @@ interface ReceivePort factory ReceivePortFactory {
/**
* Closes this receive port immediately. Pending messages will not
- * be processed and it is impossible to re-open the port. Reply
- * ports possibly created through [SendPort.call] are automatically
- * closed when the reply has been received. Multiple invocations of
- * [close] are allowed but ignored.
+ * be processed and it is impossible to re-open the port. Single-shot
+ * reply ports, such as those created through [SendPort.call], are
+ * automatically closed when the reply has been received. Multiple
+ * invocations of [close] are allowed but ignored.
*/
void close();
/**
- * Converts this receive port to a send port. It is legal to create several
- * [SendPort]s from the same [ReceivePort].
+ * Creates a new send port that sends to this receive port. It is legal to
+ * create several [SendPort]s from the same [ReceivePort].
*/
SendPort toSendPort();
@@ -135,13 +135,13 @@ class Isolate {
* possible.
*
* During the initialization of the new isolate a [ReceivePort] is created
- * inside the new isolate and stored in [port]. A corresponding
- * [SendPort] is sent to the isolate that invoked [spawn]. Since spawning an
- * isolate is an asynchronous operation this method returns a [Future] of
- * this [SendPort].
+ * inside the new isolate and stored in the read-only field [port].
+ * A corresponding [SendPort] is sent to the isolate that invoked [spawn].
+ * Since spawning an isolate is an asynchronous operation this method returns
+ * a [Future] of this [SendPort].
*
* A common pattern to instantiate new isolates is to enqueue the instructions
- * in [Future.then].
+ * using [Future.then].
* [:myIsolate.spawn().then((SendPort port) { port.send('hi there'); });:]
*/
Future<SendPort> spawn() {
« 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