@Test public void testWithValue() throws Exception { Future<Integer> future = Futures.withValue(1); int result = future.await(); assertEquals(1, result); }
public static <T> Future<T> withValue(T value){ return new FutureWithValue<>(value); }
Futures { public static <T> Future<T> withValue(T value){ return new FutureWithValue<>(value); } }
Futures { public static <T> Future<T> withValue(T value){ return new FutureWithValue<>(value); } private  Futures(); }
Futures { public static <T> Future<T> withValue(T value){ return new FutureWithValue<>(value); } private  Futures(); static FutureWithTrigger<T> withTrigger(); static Future<T> withCallback(Consumer<Callback<T>> consumer); static Future<T> withValue(T value); static Future<T> withException(Exception exception); static Future<T> withCallable(Callable<T> callable); static Future<T> withCallable(Executor executor, Callable<T> callable); static Future<Set<T>> all(Future<T>... futures); static Future<Set<T>> all(Iterable<Future<T>> futures); static Future<T> any(Future<T>... futures); static Future<T> any(Iterable<Future<T>> futures); }
Futures { public static <T> Future<T> withValue(T value){ return new FutureWithValue<>(value); } private  Futures(); static FutureWithTrigger<T> withTrigger(); static Future<T> withCallback(Consumer<Callback<T>> consumer); static Future<T> withValue(T value); static Future<T> withException(Exception exception); static Future<T> withCallable(Callable<T> callable); static Future<T> withCallable(Executor executor, Callable<T> callable); static Future<Set<T>> all(Future<T>... futures); static Future<Set<T>> all(Iterable<Future<T>> futures); static Future<T> any(Future<T>... futures); static Future<T> any(Iterable<Future<T>> futures);  }