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