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

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

package io.smallrye.mutiny.converters.multi;

import io.reactivex.Single;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.converters.MultiConverter;

public class FromSingle implements MultiConverter, T> {

    public static final FromSingle INSTANCE = new FromSingle();

    private FromSingle() {
        // Avoid direct instantiation
    }

    @Override
    public Multi from(Single instance) {
        return Multi.createFrom().publisher(instance.toFlowable());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy