Why is this correct `CompletableFuture.supplyAsync...
# announcements
d
Why is this correct
CompletableFuture.supplyAsync(Supplier<List<Quote>> { quoteRepository.getAll(identifier) }, es)
but not this
CompletableFuture.supplyAsync({ quoteRepository.getAll(identifier) }, es)
and this is one is ok
CompletableFuture.supplyAsync({ quoteRepository.getAll(identifier) })
?