| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library test.util.compiler_pool; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:convert'; | 6 import 'dart:convert'; |
| 9 import 'dart:io'; | 7 import 'dart:io'; |
| 10 | 8 |
| 11 import 'package:async/async.dart'; | 9 import 'package:async/async.dart'; |
| 12 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
| 13 import 'package:pool/pool.dart'; | 11 import 'package:pool/pool.dart'; |
| 14 | 12 |
| 15 import '../../util/io.dart'; | 13 import '../../util/io.dart'; |
| 16 import '../load_exception.dart'; | 14 import '../load_exception.dart'; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 /// have been killed and all resources released. | 141 /// have been killed and all resources released. |
| 144 Future close() { | 142 Future close() { |
| 145 return _closeMemo.runOnce(() async { | 143 return _closeMemo.runOnce(() async { |
| 146 await Future.wait(_processes.map((process) async { | 144 await Future.wait(_processes.map((process) async { |
| 147 process.kill(); | 145 process.kill(); |
| 148 await process.exitCode; | 146 await process.exitCode; |
| 149 })); | 147 })); |
| 150 }); | 148 }); |
| 151 } | 149 } |
| 152 } | 150 } |
| OLD | NEW |