| Package | Description |
|---|---|
| com.cloudbees.groovy.cps |
| Modifier and Type | Field and Description |
|---|---|
Outcome |
Next.yield
If the program getting executed wants to yield a value and suspend its execution,
this value is set to non-null.
|
| Modifier and Type | Method and Description |
|---|---|
Outcome |
Next.run(int max)
for testing only
|
Outcome |
Continuable.run0(Outcome cn)
Deprecated.
|
Outcome |
Continuable.run0(Outcome cn,
List<Class> categories)
Resumes this program by either returning the value from
Continuable.suspend(Object) or
throwing an exception |
| Modifier and Type | Method and Description |
|---|---|
static Next |
Next.go0(Outcome v,
Continuable c)
Crestes a
Next object that
causes the interpreter loop to keep evaluating the continuation represented by Continuable
by passing the outcome (or throwing it). |
Outcome |
Continuable.run0(Outcome cn)
Deprecated.
|
Outcome |
Continuable.run0(Outcome cn,
List<Class> categories)
Resumes this program by either returning the value from
Continuable.suspend(Object) or
throwing an exception |
static Next |
Next.terminate0(Outcome v)
Creates a
Next object that terminates the computation and either returns a value or throw an exception. |
static Next |
Next.yield0(Outcome v,
Continuable c)
Creates a
Next object that
causes the interpreter loop to exit with the specified value, then optionally allow the interpreter
to resume to the continuation represented by Continuable. |
| Modifier and Type | Method and Description |
|---|---|
void |
Continuable.prepend(Continuable c,
com.google.common.base.Function<Outcome,Outcome> mapper)
Set aside what we are executing, and instead resume the next execution from the point
the given 'Continuable' points to.
|
void |
Continuable.prepend(Continuable c,
com.google.common.base.Function<Outcome,Outcome> mapper)
Set aside what we are executing, and instead resume the next execution from the point
the given 'Continuable' points to.
|
| Constructor and Description |
|---|
Next(Env e,
Continuation k,
Outcome yield) |
| Constructor and Description |
|---|
ConcatenatedContinuation(Continuation first,
com.google.common.base.Function<Outcome,Outcome> mapper,
Continuable then) |
ConcatenatedContinuation(Continuation first,
com.google.common.base.Function<Outcome,Outcome> mapper,
Continuable then) |
Copyright © 2011–2019. All rights reserved.