-
Notifications
You must be signed in to change notification settings - Fork 3
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
cancel()
raises Submitexception
?
#134
Comments
|
From the spec:
That seems inconsistent with the use in |
I agree it is confusing. There are two options I can think of: 1) rename SubmitException in a way that captures the common denominator between I think the exception should be functional rather than nominal, in the same way that IOError is thrown by many callables rather than each callable defining a separate exception based on the operation that is being performed. So that seems to to hint at (1). |
I am also for option (1), and |
Sounds fine I think. Part of me thinks that the exception name should reflect the nature of the problem rather than the location of the problem, since the latter is too similar to |
The spec defines:
That looks wrong. Also, the text does not clarify when an exception should be raised. I assume that an
InvalidStateException
should be raised ifcancel()
is called on a job in final state?The above also applies to the
job.cancel()
method.BTW: we have
cancel()
on the job executor and the job (which I like). I still think we should havewait()
on both also.The text was updated successfully, but these errors were encountered: