Skip to content
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

Provide functional style API? #347

Open
kevinten10 opened this issue Dec 18, 2020 · 1 comment
Open

Provide functional style API? #347

kevinten10 opened this issue Dec 18, 2020 · 1 comment

Comments

@kevinten10
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant