Skip to content

Job.cancel() should not return a Boolean, but Unit #713

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 Oct 16, 2018 · 2 comments
Closed

Job.cancel() should not return a Boolean, but Unit #713

elizarov opened this issue Oct 16, 2018 · 2 comments
Assignees

Comments

@elizarov
Copy link
Contributor

Currently, Job.cancel() result documentation is inconsistent with the actual return value for Job() instances. Moreover, it is unclear how boolean result of Job.cancel() could be used, that is, we don't see any compelling use-case on the use of that boolean value that could guide the logic that this boolean value shall have. So, the proposal is change Job.cancel() so that it returns Unit.

@Dico200
Copy link

Dico200 commented Oct 16, 2018

Is this something you might consider to change before 1.0 release?

@elizarov
Copy link
Contributor Author

Likely, yes.

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

3 participants