| Package | Description |
|---|---|
| com.dxfeed.promise |
Provides
Promise class for request-based APIs that can be used
both synchronously and asynchronously. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Promise.handleDone(PromiseHandler<? super T> handler)
Invoked when promise is done.
|
void |
Promise.whenDone(PromiseHandler<? super T> handler)
Registers a handler to be invoked exactly once when computation
completes. |
void |
Promise.whenDoneAsync(PromiseHandler<? super T> handler,
Executor executor)
Registers a handler to be invoked asynchronously exactly once when computation
completes. |
Copyright © 2002–2023 Devexperts LLC. All rights reserved.