Just use Uni instead of UniOperator
@@ -747,11 +747,11 @@ public interface Uni<T> {
* Plug a user-defined operator that does not belong to the existing Mutiny API.
*
* @param operatorProvider a function to create and bind a new operator instance, taking {@code this} {@link Uni} as a
- * parameter and returning a new {@link UniOperator}
+ * parameter and returning a new {@link Uni}
* @param <R>
* @return the new {@link Uni}
*/
- default <R> Uni<R> plug(Function<Uni<T>, UniOperator<T, R>> operatorProvider) {
+ default <R> Uni<R> plug(Function<Uni<T>, Uni<R>> operatorProvider) {
return Infrastructure.onUniCreation(operatorProvider.apply(this));
}
}
