From f287ac7b6fe32d6d6c332e9a1f751ffa12bf42b2 Mon Sep 17 00:00:00 2001 From: Alex Martel <13215031+manofthepeace@users.noreply.github.com> Date: Wed, 22 Nov 2023 18:46:12 -0500 Subject: [PATCH] docs: fix javadoc for deferred uni creation --- implementation/src/main/java/io/smallrye/mutiny/Uni.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementation/src/main/java/io/smallrye/mutiny/Uni.java b/implementation/src/main/java/io/smallrye/mutiny/Uni.java index d3c8973ab..9a5c68391 100644 --- a/implementation/src/main/java/io/smallrye/mutiny/Uni.java +++ b/implementation/src/main/java/io/smallrye/mutiny/Uni.java @@ -50,7 +50,7 @@ public interface Uni { * Uni.createFrom().completionStage(cs); // Emit the item from this completion stage * Uni.createFrom().completionStage(() -> cs); // Emit the item from this completion stage, the stage is not created before subscription * Uni.createFrom().failure(exception); // Emit the failure at subscription time - * Uni.createFrom().deferred(() -> Uni.from().value(x)); // Defer the uni creation until subscription. Each subscription can produce a different uni + * Uni.createFrom().deferred(() -> Uni.createFrom().item(x)); // Defer the uni creation until subscription. Each subscription can produce a different uni * Uni.createFrom().item(null); // Emit null at subscription time * Uni.createFrom().nothing(); // Create a Uni not emitting any signal * Uni.createFrom().publisher(publisher); // Create a Uni from a Reactive Streams Publisher