We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5d3b9 commit 8a7a3dfCopy full SHA for 8a7a3df
lib/src/generate/build_impl.dart
@@ -384,15 +384,14 @@ class BuildImpl {
384
/// dirty unlike [outputs] which only gets files which were explicitly
385
/// generated in this build.
386
final phaseOutputIds = new Set<AssetId>();
387
- for (var action in phase) {
+
388
+ await Future.wait(phase.map((action) async {
389
var inputs = _matchingInputs(action.inputSet);
- // TODO(jakemac): Optimize, we can run all the builders in a phase
390
- // at the same time instead of sequentially.
391
await for (var output
392
in _runBuilder(action.builder, inputs, phaseOutputIds)) {
393
outputs.add(output);
394
}
395
- }
+ }));
396
397
/// Once the group is done, add all outputs so they can be used in the next
398
/// phase.
0 commit comments