Issue with currying?
#14933
-
|
Why do I get try (var executorService = Executors.newFixedThreadPool(5)) {
IntStream.range(0, size).<Runnable> mapToObj(key -> () -> {
cache.put(key, "value" + key);
countDownLatch.countDown();
}).forEach(executorService::submit);
countDownLatch.await();
} |
Beta Was this translation helpful? Give feedback.
Answered by
strkkk
Jun 6, 2024
Replies: 1 comment 1 reply
-
|
You get this because you have a whitespace after |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
delanym
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You get this because you have a whitespace after
<Runnable>IntStream.range(0, size).<Runnable>mapToObj(key -> () -> {wont cause violation