Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 library http_lanuch_main; | |
| 6 | |
| 7 import 'dart:isolate'; | |
| 8 import 'dart:io'; | |
| 9 | |
| 10 main() { | |
| 11 int port = int.parse(new Options().arguments[0]); | |
| 12 SendPort spawnedPort = | |
| 13 spawnUri('http://127.0.0.1:$port/http_isolate_main.dart'); | |
| 14 spawnedPort.call('hello').then((response) { | |
| 15 print(response); | |
| 16 }); | |
| 17 } | |
| 18 | |
| OLD | NEW |