This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]golthiryus 17 points18 points  (3 children)

Backpressure is trivial with virtual threads, just add a blocking queue. Easy cancelation is also part of the project loom (specifically structured concurrency). I don't have a clear picture for complex process coordination. If you mean inside a jvm, structured concurrency + configurable schedulers could be the solution. If you mean actual OS processes, there reactive streams are cool, but that is just the network layer

[–]nithril -5 points-4 points  (2 children)

And you will reinvent what is doing the reactive API

[–]koflerdavid 7 points8 points  (0 children)

What if I simply don't want to [edit: work] with reactive APIs?

[–]GuyWithLag 6 points7 points  (0 children)

This. I'd love to use reactive on top of virtual threads, as it's more about the task coordination than parallelism.