OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import "dart:fletch"; | 5 import "dart:fletch"; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:isolate/isolate.dart'; | 8 import 'package:isolate/isolate.dart'; |
9 | 9 |
10 import "service_one_impl.dart" as one; | 10 import "service_one_impl.dart" as one; |
11 import "service_two_impl.dart" as two; | 11 import "service_two_impl.dart" as two; |
12 | 12 |
13 main() { | 13 main() { |
14 var isolateOne = Isolate.spawn(one.main); | 14 var isolateOne = Isolate.spawn(one.main); |
15 var isolateTwo = Isolate.spawn(two.main); | 15 var isolateTwo = Isolate.spawn(two.main); |
16 isolateOne.join(); | 16 isolateOne.join(); |
17 isolateTwo.join(); | 17 isolateTwo.join(); |
18 } | 18 } |
OLD | NEW |