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

Fluent concurrency API provided by JacpContext #26

Open
amoAHCP opened this issue Apr 23, 2015 · 0 comments
Open

Fluent concurrency API provided by JacpContext #26

amoAHCP opened this issue Apr 23, 2015 · 0 comments
Assignees
Milestone

Comments

@amoAHCP
Copy link
Collaborator

amoAHCP commented Apr 23, 2015

Provide a CompletableFuture like API to execute tasks and GUI updates. "Abstract" CompletableFuture and reduce API complexity.
My current test implementation is like that:

context.getAsyncHandler().
supplyOnExecutorThread(() -> service.getAllValues()).
functionOnExecutorThread((values) -> values.stream().map(val->new Button(val.toString())).collect(Collectors.toList())).
consumeOnFXThread((buttonList)->node.getChildren().addAll(buttonList)).
.execute();

@amoAHCP amoAHCP added this to the 2.1-M1 milestone Apr 23, 2015
@amoAHCP amoAHCP self-assigned this Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant