in Generator/Sources/NeedleFramework/Parsing/AbstractDependencyGraphParser.swift [49:61]
func executeAndCollectTaskHandles<ResultType>(with rootUrls: [URL], sourcesListFormatValue: String?, execution: (URL) -> SequenceExecutionHandle<ResultType>) throws -> [(SequenceExecutionHandle<ResultType>, URL)] {
var urlHandles = [(SequenceExecutionHandle<ResultType>, URL)]()
// Enumerate all files and execute parsing sequences concurrently.
try collectFileUrlsIfNeeded(with: rootUrls, sourcesListFormatValue: sourcesListFormatValue)
for fileUrl in allFileUrls {
let taskHandle = execution(fileUrl)
urlHandles.append((taskHandle, fileUrl))
}
return urlHandles
}