Package | Description |
---|---|
bayou.async |
Async programming model.
|
Modifier and Type | Method and Description |
---|---|
static <T> AsyncBundle<T,List<T>> |
AsyncBundle.allOf(Stream<Async<T>> tasks)
Create a bundle that succeeds if all of the tasks succeeds.
|
static <T> AsyncBundle<T,T> |
AsyncBundle.anyOf(Stream<Async<T>> tasks)
Create a bundle that succeeds as soon as any one of the tasks succeeds.
|
static <T> AsyncBundle<T,List<T>> |
AsyncBundle.someOf(Stream<Async<T>> tasks,
int successThreshold)
Create a bundle that succeeds as soon as a number of the tasks succeeds.
|