abstract class FutureAdapter<T : Any, S : Any> : Future<T>
Abstract class that adapts a Future parameterized over S into a Future parameterized over T. All methods are delegated to the adaptee, where #get() and #get(long, TimeUnit) call #adapt(Object) on the adaptee's result.
- the type of the adaptee's Future
Author
Arjen Poutsma
Since
4.0
open fun cancel(mayInterruptIfRunning: Boolean): Boolean |
|
open fun get(): Topen fun get(timeout: Long, unit: TimeUnit): T |
|
open fun isCancelled(): Boolean |
|
open fun isDone(): Boolean |
abstract class ListenableFutureAdapter<T : Any, S : Any> : FutureAdapter<T, S>, ListenableFuture<T>
Abstract class that adapts a ListenableFuture parameterized over S into a |