blob: e4b329deae01e5df2c472d4e6fd21a44a4411b7f (
plain) (
tree)
|
|
import collection.parallel.CompositeThrowable
object Test {
def main(args: Array[String]) {
val foos = (1 to 1000) toSeq;
try {
foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
} catch {
case CompositeThrowable(thr) => println("Composite throwable")
}
}
}
|