io.smallrye.mutiny.converters.uni.ToCompletable Maven / Gradle / Ivy
package io.smallrye.mutiny.converters.uni;
import java.util.function.Function;
import io.reactivex.Completable;
import io.smallrye.mutiny.Uni;
public class ToCompletable implements Function, Completable> {
public static final ToCompletable INSTANCE = new ToCompletable();
private ToCompletable() {
// Avoid direct instantiation
}
@Override
public Completable apply(Uni uni) {
return Completable.fromPublisher(uni.convert().toPublisher());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy