Description
This is a GParas plugin for Griffon. This plugin allows you to use GPars (Groovy Parallel Systems - http://gpars.codehaus.org/) in your Griffon applications without need to manually download the GPars jar files.
The latest plugin version is 0.1
Dependencies
The gpars plugin has no other dependencies. If it cannot run out-of-the box, please report in the Griffon user group.
Installation
Type this command in your Grail application directory
griffon install-plugin gpars
or if you have a plugin archive locally.
griffon install-plugin /path/to/griffon-gpars-0.1.zip
Getting started
This plugin installs the GPars jar files in your app's lib folder. GPars is a Groovy concurrency library, which enables a couple of convenient DSLs and high-level concurrency constructs like actors, data-flow concurrency, map/reduce, fork/join, concurrent collection processing and more. Check out all the options at (http://gpars.codehaus.org/).
import static groovyx.gpars.actor.Actors.*
final def decryptor = actor {
loop {
react {String message->
reply message.reverse()
}
}
}
def console = actor {
decryptor.send 'suonorhcnysa si yvoorG'
react {
println 'Decrypted message: ' + it
}
}
console.join()



