Skip to content

Instantly share code, notes, and snippets.

@mike-neck
Created June 17, 2011 11:22
Show Gist options
  • Save mike-neck/1031240 to your computer and use it in GitHub Desktop.
Save mike-neck/1031240 to your computer and use it in GitHub Desktop.
GPars Actor Sample
import static groovyx.gpars.actor.Actors.*;
def console = actor{
loop{
react {msg ->
println msg
}
}
}
console.send('Hello, Actor')
console << 'Hello, World'
println 'Hello, println'
console.call('Hello, call')
console 'Hello Erlang'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment