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

io.smallrye.mutiny.converters.uni.ToCompletable Maven / Gradle / Ivy

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