Chromium Code Reviews| Index: tests/isolate/src/APIv2_spawnUriChildIsolate.dart |
| =================================================================== |
| --- tests/isolate/src/APIv2_spawnUriChildIsolate.dart (revision 0) |
| +++ tests/isolate/src/APIv2_spawnUriChildIsolate.dart (revision 0) |
| @@ -0,0 +1,17 @@ |
| +// 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. |
| + |
| +// Child isolate code to be spawned from a URI to this file. |
| + |
| +void isolateMain(ReceivePort port) { |
| + port.receive((msg, reply) => reply.send("re: $msg")); |
| +} |
| + |
| +// just for frog's sake. |
|
Siggi Cherem (dart-lang)
2012/02/14 01:16:46
+ TODO
eub
2012/02/15 19:58:22
Done.
|
| +main() { |
| + if (false) { |
| + isolateMain(null); |
| + new ReceivePort(); |
| + } |
| +} |