| Package | Description |
|---|---|
| groovyx.gpars.actor |
This package holds classes forming the public actor API.
|
| groovyx.gpars.group |
| Modifier and Type | Field and Description |
|---|---|
private DefaultActor |
DefaultActorClosure.myActor |
| Modifier and Type | Method and Description |
|---|---|
static DefaultActor |
Actors.actor(java.lang.Runnable handler)
Creates a new instance of DefaultActor, using the passed-in closure as the body of the actor's act() method.
|
static DefaultActor |
Actors.fairActor(java.lang.Runnable handler)
Creates a new instance of PooledActor, using the passed-in closure as the body of the actor's act() method.
|
| Constructor and Description |
|---|
DefaultActorClosure(DefaultActor actor) |
| Modifier and Type | Method and Description |
|---|---|
DefaultActor |
PGroup.actor(java.lang.Runnable handler)
Creates a new instance of DefaultActor, using the passed-in runnable/closure as the body of the actor's act() method.
|
DefaultActor |
PGroup.fairActor(java.lang.Runnable handler)
Creates a new instance of DefaultActor, using the passed-in runnable/closure as the body of the actor's act() method.
|