Skip to content

Instantly share code, notes, and snippets.

@mike-neck
Created June 17, 2011 10:49
Show Gist options
  • Save mike-neck/1031204 to your computer and use it in GitHub Desktop.
Save mike-neck/1031204 to your computer and use it in GitHub Desktop.
GPars Sample
import static groovyx.gpars.GParsPool.*;
def numero = [1,2,3,4]
def square = [1,4,9,16]
withPool{
assert square == numero.collectParallel {
println it
it * it
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment