Skip to content
Advertisement

Tag: project-reactor

How to extract string from Mono in reactor core

I have a Mono<String> object in reactor. How can I get a string value from this object? I know I can do something like below : For Mono<String> userName, I can do, But this will directly print the value. I want to store this string value into another variable so that I can pass that variable around to some other

Mono vs CompletableFuture

CompletableFuture executes a task on a separate thread ( uses a thread-pool ) and provides a callback function. Let’s say I have an API call in a CompletableFuture. Is that an API call blocking? Would the thread be blocked till it does not get a response from the API? ( I know main thread/tomcat thread will be non-blocking, but what

Advertisement