io.smallrye.mutiny.converters.multi.FromObservable Maven / Gradle / Ivy
package io.smallrye.mutiny.converters.multi;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Observable;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.converters.MultiConverter;
public class FromObservable implements MultiConverter, T> {
public static final FromObservable INSTANCE = new FromObservable();
private FromObservable() {
// Avoid direct instantiation
}
@Override
public Multi from(Observable instance) {
return Multi.createFrom().publisher(instance.toFlowable(BackpressureStrategy.BUFFER));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy