Interface IResultFuture<R>
- Type Parameters:
R- is the type of the result of aIResultFuture.
- All Superinterfaces:
FinishRequestable, IFuture
- All Known Implementing Classes:
ResultFuture
A
IResultFuture is a IFuture that will deliver a result when
it is finished.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionWaits until the currentIResultFutureis finished and returns its result.Methods inherited from interface FinishRequestable
isFinished, isRunningMethods inherited from interface IFuture
caughtError, getError, isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinished, waitUntilIsFinished, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfully
-
Method Details
-
getResult
R getResult()- Returns:
- the result of the current
IResultFuture.
-
waitUntilIsFinishedAndGetResult
R waitUntilIsFinishedAndGetResult()Waits until the currentIResultFutureis finished and returns its result.- Returns:
- the result of the current
IResultFutureafter waiting until it is finished.
-