| Package | Description |
|---|---|
| net.lecousin.framework.concurrent.async |
Classes implementing synchronization points such as asynchronous result, join point...
|
| net.lecousin.framework.io |
New java Input/Output model adding more flexibility and asynchronous operations.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,TError extends Exception> |
AsyncSupplier.Listener.from(Consumer<T> onReady,
Consumer<TError> onError,
Consumer<CancelException> onCancel)
Create a Listener with the given listeners.
|
static <T,TError extends Exception> |
AsyncSupplier.Listener.from(Runnable onReady,
Consumer<TError> onError,
Consumer<CancelException> onCancel)
Create a Listener with the given listeners.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncSupplier.listen(AsyncSupplier.Listener<T,TError> listener)
Add a listener to be called when this AsyncSupplier is unblocked.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
IOUtil.RecursiveAsyncSupplierListener<T>
Recursive listener, forwarding error or cancel and calling onDone on error.
|
Copyright © 2019. All rights reserved.