Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reactor-plugin empty mono and flux #11805

Open
jaehong-kim opened this issue Dec 10, 2024 · 0 comments
Open

Fix reactor-plugin empty mono and flux #11805

jaehong-kim opened this issue Dec 10, 2024 · 0 comments
Assignees
Milestone

Comments

@jaehong-kim
Copy link
Contributor

Fix reactor-plugin empty mono and flux

Avoid tracking MonoEmpty objects.

public class MonoEmptyExample {
    public static void main(String[] args) {
        Mono<String> emptyMono = Mono.empty();

        emptyMono.subscribe(
            value -> System.out.println("This will not be printed"),
            error -> System.err.println("This will not be printed either"),
            () -> System.out.println("Completed without emitting any item")
        );
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant