I might have been doing something really wrong. So, I have Spring's @Async
Let's say I have this piece of code
@Async("poolbeanname")
Function () {
// some code
}
I have one more, let's say I have this piece of code
@Async("poolbeanname")
Function () {
CompletableFuture.runAsync{ new Runnable ()...}
}
Now with the second code I can see, some threads got spawned but the first approach doesn't seem to spawn more than one?