Spring Boot - Async Processing
Consider this Spring Boot async method:
@Async public CompletableFuturefetchResult() { return CompletableFuture.completedFuture("Success"); }
What does the caller receive when invoking fetchResult()?
Consider this Spring Boot async method:
@Async public CompletableFuturefetchResult() { return CompletableFuture.completedFuture("Success"); }
What does the caller receive when invoking fetchResult()?
CompletableFuture<String> which is completed immediately.CompletableFuture object, not the raw string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions