OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import 'poi.dart' as poi; | 5 import 'poi.dart' as poi; |
6 | 6 |
| 7 int count = 0; |
| 8 |
| 9 int MAX_ITERATIONS = |
| 10 const int.fromEnvironment('MAX_ITERATIONS', defaultValue: null); |
| 11 |
7 main(arguments) { | 12 main(arguments) { |
| 13 count++; |
| 14 if (MAX_ITERATIONS != null && count > MAX_ITERATIONS) return; |
| 15 print('\n\n\n\nIteration #$count.'); |
8 poi.main(arguments).then((_) => main(arguments)); | 16 poi.main(arguments).then((_) => main(arguments)); |
9 } | 17 } |
OLD | NEW |