Skip to content

Instantly share code, notes, and snippets.

@abayer
Created August 1, 2017 17:34
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save abayer/5d02d5a41efcf234db33dd05e6709901 to your computer and use it in GitHub Desktop.
// assume this is some list of things you're going to do something with
def someList
def parallelBranches = someList.collectEntries { n ->
[(n): {
throttle('category') {
node('some-node') {
// do some things with n
}
}
}]
parallel parallelBranches
@cccaternberg
Copy link

Thanks, that is exactly what i need at the moment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment