
io.scalecube.benchmarks.examples.ExampleService Maven / Gradle / Ivy
package io.scalecube.benchmarks.examples;
import reactor.core.publisher.Mono;
public class ExampleService {
public Mono invoke(String request) {
return Mono.defer(() -> Mono.just(request + hardTask()));
}
private Double hardTask() {
return Math.hypot(100, 100);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy