Suppose I need to process files in a given folder in parallel. In Java I would create a FolderReader thread to read file names from the folder and a pool of
FolderReader
Depending on what you're doing, it may be as simple as
for(file<-files.par){ //process the file }