Skip to content

Commit

Permalink
Suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Jan 24, 2023
1 parent 7a48184 commit da82ae0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,11 @@ Flux<S> after(
* Flux}.
*/
abstract static class MonoFlatMapToFlux<T, S> {
// XXX: I'd be more expressive if this `@Placeholder` were replaced with a `Function<? super T,
// ? extends Mono<? extends S>>` parameter, so that compatible non-lambda expression arguments
// to `flatMapMany` are also matched. However, the type inferred for lambda and method reference
// expressions passed to `flatMapMany` appears to always be `Function<T, Publisher<? extends
// S>>`, which doesn't match. Find a solution.
// XXX: It would be more expressive if this `@Placeholder` were replaced with a `Function<?
// super T, ? extends Mono<? extends S>>` parameter, so that compatible non-lambda expression
// arguments to `flatMapMany` are also matched. However, the type inferred for lambda and method
// reference expressions passed to `flatMapMany` appears to always be `Function<T, Publisher<?
// extends S>>`, which doesn't match. Find a solution.
@Placeholder(allowsIdentity = true)
abstract Mono<S> transformation(@MayOptionallyUse T value);

Expand Down

0 comments on commit da82ae0

Please sign in to comment.