Lines Matching refs:Produced
30 import dagger.producers.Produced;
53 public static <T> ListenableFuture<Produced<T>> createFutureProduced(ListenableFuture<T> future) { in createFutureProduced()
61 private static final Function<Object, Produced<Object>> RESULT_TO_PRODUCED =
62 new Function<Object, Produced<Object>>() {
64 public Produced<Object> apply(Object result) {
65 return Produced.successful(result);
70 private static <T> Function<T, Produced<T>> resultToProduced() { in resultToProduced()
74 private static final AsyncFunction<Throwable, Produced<Object>> FUTURE_FALLBACK_FOR_PRODUCED =
75 new AsyncFunction<Throwable, Produced<Object>>() {
77 public ListenableFuture<Produced<Object>> apply(Throwable t) throws Exception {
78 Produced<Object> produced = Produced.failed(t);
84 private static <T> AsyncFunction<Throwable, Produced<T>> futureFallbackForProduced() { in futureFallbackForProduced()