All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.mutiny.converters.multi.FromObservable Maven / Gradle / Ivy

There is a newer version: 1.10.0
Show newest version
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