delayedGeneration method
Implementation
Future<void> delayedGeneration() async {
await lock.synchronized(() async {
final files = _toGenerate.toSet().toList()
..sort((lhs, rhs) => lhs.compareTo(rhs));
for (final file in files) {
try {
final svgFile = await file.convert(force: false, progress: log);
_generatedController.add(svgFile);
} on SMCatException catch (e, _) {
/// already logged.
}
}
_toGenerate.clear();
});
}