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