| Modifier and Type | Method and Description |
|---|---|
void |
Async.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 |
Async.series(Outcome outcome,
Function... functions)
Run an array of functions in series, each one running once the previous function has completed.
|
void |
Async.waterfall(C context,
Outcome<C> outcome,
Function<C>... functions)
Runs an array of functions in series, working on a shared context.
|
void |
Async.whilst(Precondition condition,
Outcome outcome,
Function function)
Repeatedly call function, while condition is met.
|
void |
Async.whilst(Precondition condition,
Outcome outcome,
Function function,
int period)
Same as
Async.whilst(Precondition, Outcome, Function) but waits period millis between calls to
function. |
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.