puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

Provide functional style API? #347

Open kevinten10 opened 3 years ago

kevinten10 commented 3 years ago

Now, when I try to start a Fiber, I have to use generated code similar to traditional Thread

Fiber<Void> echo = new Fiber<Void>("ECHO", () -> { // lambda }).start();

Can you consider a functional programming style that provides a pattern for chained operators.

like: go(() -> { /* lambda */ });

This will make it easier for me in the chain call.

kevinten10 commented 3 years ago

I know you are busy with the loom project recently, do you consider adding this feature to the loom project?