parseAll method

Future<List<ParsedFile>> parseAll(
  1. List<File> files
)

Parses a list of files in parallel. Returns only successfully parsed files; failures are silently dropped.

Implementation

Future<List<ParsedFile>> parseAll(List<File> files) async {
  final results = await Future.wait(files.map(parse));
  return results.whereType<ParsedFile>().toList();
}