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

Side by Side Diff: lib/isolate/base.dart

Issue 10944006: - Removed comment to Frog and eliminated usage of sentinel. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/unittest/mock.dart » ('j') | pkg/unittest/mock.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class IsolateSpawnException implements Exception { 5 class IsolateSpawnException implements Exception {
6 const IsolateSpawnException(String this._s); 6 const IsolateSpawnException(String this._s);
7 String toString() => "IsolateSpawnException: '$_s'"; 7 String toString() => "IsolateSpawnException: '$_s'";
8 final String _s; 8 final String _s;
9 } 9 }
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 * the receiving isolate. If specified, the [replyTo] port will be provided to 57 * the receiving isolate. If specified, the [replyTo] port will be provided to
58 * the receiver to facilitate exchanging sequences of messages. 58 * the receiver to facilitate exchanging sequences of messages.
59 * 59 *
60 * The content of [message] can be: primitive values (null, num, bool, double, 60 * The content of [message] can be: primitive values (null, num, bool, double,
61 * String), instances of [SendPort], and lists and maps whose elements are any 61 * String), instances of [SendPort], and lists and maps whose elements are any
62 * of these. List and maps are also allowed to be cyclic. 62 * of these. List and maps are also allowed to be cyclic.
63 * 63 *
64 * In the special circumstances when two isolates share the same code and are 64 * In the special circumstances when two isolates share the same code and are
65 * running in the same process (e.g. isolates created via [spawnFunction]), it 65 * running in the same process (e.g. isolates created via [spawnFunction]), it
66 * is also possible to send object instances (which would be copied in the 66 * is also possible to send object instances (which would be copied in the
67 * process). This is currently only supported by the dartvm. For now, the 67 * process). This is currently only supported by the dartvm.
68 * frog compiler only supports the restricted messages described above.
69 * 68 *
70 * Deprecation note: it is no longer valid to transmit a [ReceivePort] in a 69 * Deprecation note: it is no longer valid to transmit a [ReceivePort] in a
71 * message. Previously they were translated to the corresponding send port 70 * message. Previously they were translated to the corresponding send port
72 * before being transmitted. 71 * before being transmitted.
73 */ 72 */
74 void send(var message, [SendPort replyTo]); 73 void send(var message, [SendPort replyTo]);
75 74
76 /** 75 /**
77 * Sends a message to this send port and returns a [Future] of the reply. 76 * Sends a message to this send port and returns a [Future] of the reply.
78 * Basically, this internally creates a new receive port, sends a 77 * Basically, this internally creates a new receive port, sends a
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // TODO(kasperl): Make this hashable and document it. 138 // TODO(kasperl): Make this hashable and document it.
140 abstract class SendPortSync { 139 abstract class SendPortSync {
141 140
142 callSync(var message); 141 callSync(var message);
143 142
144 } 143 }
145 144
146 class _ReceivePortFactory { 145 class _ReceivePortFactory {
147 external factory ReceivePort(); 146 external factory ReceivePort();
148 } 147 }
OLDNEW
« no previous file with comments | « no previous file | pkg/unittest/mock.dart » ('j') | pkg/unittest/mock.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698