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

Unified Diff: tests/isolate/spawn_uri_nested_child1_vm_isolate.dart

Issue 13351002: First step for fixing Issue 9416. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « tests/isolate/isolate.status ('k') | tests/isolate/spawn_uri_nested_child2_vm_isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/spawn_uri_nested_child1_vm_isolate.dart
===================================================================
--- tests/isolate/spawn_uri_nested_child1_vm_isolate.dart (revision 0)
+++ tests/isolate/spawn_uri_nested_child1_vm_isolate.dart (revision 0)
@@ -0,0 +1,25 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Example of nested spawning of isolates from a URI
+// Note: the following comment is used by test.dart to additionally compile the
+// other isolate's code.
+library NestedSpawnUriChild1Library;
+import 'dart:isolate';
+import '../../pkg/unittest/lib/unittest.dart';
+
+main() {
+ ReceivePort port2 = new ReceivePort();
+ port2.receive((msg, SendPort replyTo) {
+ port2.close();
+ });
+
+ SendPort s = spawnUri('spawn_uri_nested_child2_vm_isolate.dart');
+ s.send('hi', port2.toSendPort());
+
+ port.receive((message, SendPort replyTo) {
+ var result = message;
+ replyTo.send(result);
+ });
+}
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/spawn_uri_nested_child2_vm_isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698