Skip to content

Commit 370406e

Browse files
committed
Fix signature in ComposedFutureRef
1 parent bcef61b commit 370406e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/tascalate/concurrent/ComposedFutureRef.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
class ComposedFutureRef<U> extends AtomicReference<CompletionStage<U>> {
2323
private static final long serialVersionUID = 1L;
2424

25-
<T> Function<T, CompletionStage<U>> captureResult(Function<? super T, ? extends CompletionStage<U>> fn) {
25+
<T, F extends CompletionStage<U>> Function<T, F> captureResult(Function<? super T, ? extends F> fn) {
2626
return v -> {
27-
CompletionStage<U> result = fn.apply(v);
27+
F result = fn.apply(v);
2828
set(result);
2929
return result;
3030
};

0 commit comments

Comments
 (0)