Skip to content

CompletableJob #607

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

Closed
elizarov opened this issue Sep 24, 2018 · 0 comments
Closed

CompletableJob #607

elizarov opened this issue Sep 24, 2018 · 0 comments

Comments

@elizarov
Copy link
Contributor

We have use-cases when we need an explicit Job object with children. However, the regular Job() constructor produces a job that cannot complete normally. You can only cancel() it, thus also cancelling all its children. Right now CompletableDeferred<Unit>() is used as such a primitive. It works final, but just looks quite unnatural, so the proposal is to add a dedicated CompletableJob() primitive that has a complete() method to complete its normally.

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