-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider not throwing ExecutionException in structured scopes #59
Comments
Was just pointed to the latest JDK StructuredConcurrency javadoc. Looks like they've made all these exceptions unchecked (https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html):
Looks like a welcome change to me. Although, I'd love to learn your thoughts on the latest API design (still has that trying-to-do-too-much feeling). https://www.reddit.com/r/java/comments/1fazdkl/structuredtaskscope_vs_parallel_stream/ |
@fluentfuture oh that's interesting, thanks for the link! The API seems much better: Jox of course will be able to use the new API under the hood. As for exception handling - if a Java JEP itself departs from using checked exceptions, I think that's a done deal. I suppose we'd end up throwing a custom Jox-defined runtime exception then? |
Yeah. We are having discussions in that thread. My latest thoughts on these racy-flavor of concurrency: Feel free to chime in. :) |
Wondering what kind of memory consistency you provide in that case? In naive structured concurrency, say, if you block on This is also true with Mug's |
@fluentfuture sorry for the delay :) The joined & joining threads synchronise using an equivalent of an |
Instead:
See the reddit thread
The text was updated successfully, but these errors were encountered: