예제 #1
0
 default <R> CompletableFuture<R> callAsync(
     OctFunction<T1, T2, T3, T4, T5, T6, T7, T8, R> fn, Executor e) {
   return CompletableFuture.completedFuture(this)
       .thenApplyAsync(
           i -> fn.apply(i.v1(), i.v2(), i.v3(), i.v4(), i.v5(), i.v6(), i.v7(), i.v8()), e);
 }
예제 #2
0
 default <R> R call(OctFunction<T1, T2, T3, T4, T5, T6, T7, T8, R> fn) {
   return fn.apply(v1(), v2(), v3(), v4(), v5(), v6(), v7(), v8());
 }