trace Directories Then
fun traceDirectoriesThen(action: (ResolvedModuleName, Repository.ModuleVersion, () -> Unit) -> Unit, afterAll: () -> Unit)
Content copied to clipboard
Scan all module files in all visible source directories, passing each ResolvedModuleName and corresponding ModuleVersion to the provided function.
Note that the action may be invoked in multiple Threads simultaneously, so the client may need to provide suitable synchronization.
The method may return before tracing has completed, but afterAll will eventually be invoked in some Thread after all modules have been processed.
Parameters
action
What to do with each module version. A function will be passed, which should be evaluated to indicate the module has been processed.
after All
What to do after all of the modules have been processed.