-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P3
-
Affects Version/s: None
-
Component/s: core-libs
The specification for StructuredTaskScope::join states that an InterruptedException is thrown if the thread is interrupted while waiting. However, it seems that this is not the only case, because the thread could also be interrupted before calling join, and the method would still throw InterruptedException.
Shouldn't the documentation say something like "Throws InterruptedException if the calling thread is interrupted before or while waiting"?
also many APIs that throw InterruptedException don't explicit state what happens if they are called with the interrupted status set.
Shouldn't the documentation say something like "Throws InterruptedException if the calling thread is interrupted before or while waiting"?
also many APIs that throw InterruptedException don't explicit state what happens if they are called with the interrupted status set.