public class Async<C> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
parallel(C context,
Outcome<C> outcome,
Function<C>... functions)
Run an array of functions in parallel, without waiting until the previous function has completed.
|
void |
series(Outcome outcome,
Function... functions)
Run an array of functions in series, each one running once the previous function has completed.
|
void |
waterfall(C context,
Outcome<C> outcome,
Function<C>... functions)
Runs an array of functions in series, working on a shared context.
|
void |
whilst(Precondition condition,
Outcome outcome,
Function function)
Repeatedly call function, while condition is met.
|
void |
whilst(Precondition condition,
Outcome outcome,
Function function,
int period)
|
public Async()
public Async(Progress progress)
public void series(Outcome outcome, Function... functions)
@SafeVarargs public final void waterfall(C context, Outcome<C> outcome, Function<C>... functions)
public void parallel(C context, Outcome<C> outcome, Function<C>... functions)
public void whilst(Precondition condition, Outcome outcome, Function function)
public void whilst(Precondition condition, Outcome outcome, Function function, int period)
period - any value below 100 is ignored!Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.