public interface Result<T>
This interface provides a return value for asynchronous Objectify calls,
nearly the same as java.util.concurrent.Future
. Unfortunately the methods
of Future
throw checked exceptions, rendering the class prohibitively
painful to use in business logic. This interface fixes that problem, and implementors
automatically unwrap ExecutionExceptions (checked exceptions will be wrapped in a
new RuntimeException).
Modifier and Type | Method and Description |
---|---|
T |
now()
Waits if necessary for the computation to complete, and then retrieves
its result.
|
T now()
Copyright © 2016. All rights reserved.