Package | Description |
---|---|
com.ibm.asyncutil.iteration |
Provides support for asynchronous loop constructs.
|
com.ibm.asyncutil.util |
Provides general purpose utilities for using
CompletionStage . |
Modifier and Type | Interface | Description |
---|---|---|
interface |
AsyncIterator<T> |
A mechanism for asynchronously generating and consuming values
|
interface |
AsyncQueue<T> |
An unbounded async multi-producer-single-consumer queue.
|
interface |
BoundedAsyncQueue<T> |
A version of
AsyncQueue that provides a mechanism for backpressure. |
Modifier and Type | Method | Description |
---|---|---|
static <T,R extends AsyncCloseable> |
StageSupport.tryComposeWith(R resource,
Function<? super R,? extends CompletionStage<T>> fn) |
Performs an asynchronous function with an
AsyncCloseable resource, ensuring that the
resource is close() closed} after the stage returned by the function
completes. |
static <T,R extends AsyncCloseable> |
StageSupport.tryWith(R resource,
Function<? super R,? extends T> fn) |
Performs a function with an
AsyncCloseable resource, ensuring that the resource is
close() closed} after the function completes. |
Copyright © 2018. All rights reserved.