You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't look non-blocking... There is some concurrency... but the main thread is blocked until average() returns.
Is it possible at all to write non-blocking stuff using java 8 streams?
And why do you do I/O (call price service) using the common thread pool (parallelStream() uses that per default)? Isn't the common thread pool thought for CPU bound work? You are wasting threads of th common thread pool like this...
Hmmm... what do you think?
Best regards,
Fred
The text was updated successfully, but these errors were encountered:
Hello again,
I'm studying
https://github.com/ReactiveMeetupLucerne/AsyncNonBlockingExamplesJVM/blob/master/src/main/java/challenge1/java8/Java8StreamsExample.java
This doesn't look non-blocking... There is some concurrency... but the main thread is blocked until average() returns.
Is it possible at all to write non-blocking stuff using java 8 streams?
And why do you do I/O (call price service) using the common thread pool (parallelStream() uses that per default)? Isn't the common thread pool thought for CPU bound work? You are wasting threads of th common thread pool like this...
Hmmm... what do you think?
Best regards,
Fred
The text was updated successfully, but these errors were encountered: