Package dev.webfx.platform.async.impl
Interface FutureInternal<T>
- All Superinterfaces:
AsyncResult<T>
,Future<T>
- All Known Subinterfaces:
PromiseInternal<T>
- All Known Implementing Classes:
CompositeFutureImpl
,FailedFuture
,FutureImpl
,PromiseImpl
,SucceededFuture
Expose some of the future internal stuff.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Listener<T> listener) Add a listener to the future result.void
removeListener
(Listener<T> listener) Remove a listener to the future result.Methods inherited from interface dev.webfx.platform.async.Future
andThen, cause, compose, compose, eventually, eventually, failed, flatMap, isComplete, map, map, mapEmpty, onComplete, onComplete, onFailure, onSuccess, otherwise, otherwise, otherwiseEmpty, recover, result, succeeded, transform
-
Method Details
-
addListener
Add a listener to the future result.- Parameters:
listener
- the listener
-
removeListener
Remove a listener to the future result.- Parameters:
listener
- the listener
-